]> TLD Linux GIT Repositories - packages/rpm-build-tools.git/commitdiff
- works with git, call in main rpm dir (symlink)
authorBartosz Świątek <shadzik@tld-linux.org>
Tue, 10 Jul 2012 15:02:29 +0000 (17:02 +0200)
committerBartosz Świątek <shadzik@tld-linux.org>
Tue, 10 Jul 2012 15:02:29 +0000 (17:02 +0200)
relup.sh

index f7b604025dbea93c0369378623fa6921eec6de7e..642621842e4f52b465643b2e534436b016a7d123 100755 (executable)
--- a/relup.sh
+++ b/relup.sh
@@ -123,15 +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 git commit -a -m "'$msg'"
        if [ "$test" != 1 ]; then
-               cd $(dirname $1)
-               #git commit -m "$msg" $files
-               git commit -a -m "$msg"
+               cd $pkg
+               git commit -m "$msg" $spec
+               git push
+               cd ..
        fi
 done
 rm -rf $tmpd