]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- git support, works if called from packages directory
authorMarcin Krol <hawk@tld-linux.org>
Tue, 24 Jul 2012 08:44:58 +0000 (08:44 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Tue, 24 Jul 2012 08:44:58 +0000 (08:44 +0000)
relup.sh

index 7963e2a846b527cd2635a8af30e1b174a5d96bf7..642621842e4f52b465643b2e534436b016a7d123 100755 (executable)
--- a/relup.sh
+++ b/relup.sh
@@ -23,7 +23,7 @@ Options:
 -i
   Try to increment package release
 -u
-  cvs update first
+  git pull first
 -t | -n
   Test mode (dry-run). do not commit
 -m
@@ -123,13 +123,17 @@ n="$(echo -e '\nn')"
 n="${n%%n}"
 for file in $(ls "$tmpd" 2>/dev/null); do
        files=$(cat "$tmpd/$file")
+       pkg=$(cat "$tmpd/$file" |sed -e 's|/.*||')
+       spec=$(cat "$tmpd/$file" |sed -e 's|.*/||')
        rel=$(basename "$file")
        msg=""
        [ -n "$message" ] && msg="$msg- $message$n"
        msg="$msg- release ${rel%%%*} (by relup.sh)$n"
-       echo cvs ci -m "'$msg'"
        if [ "$test" != 1 ]; then
-               cvs ci -m "$msg" $files
+               cd $pkg
+               git commit -m "$msg" $spec
+               git push
+               cd ..
        fi
 done
 rm -rf $tmpd
This page took 0.041655 seconds and 4 git commands to generate.