]> TLD Linux GIT Repositories - packages/rpm-build-tools.git/blobdiff - relup.sh
- add -s, --skip-pull option to skip git pull when you're sure that the repo is alrea...
[packages/rpm-build-tools.git] / relup.sh
index 1eb79a9061ae4861942d54ed1296401abcbaf57b..642621842e4f52b465643b2e534436b016a7d123 100755 (executable)
--- a/relup.sh
+++ b/relup.sh
@@ -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 git commit -a -m "'$msg'"
        if [ "$test" != 1 ]; then
-               git commit -m "$msg" $files
+               cd $pkg
+               git commit -m "$msg" $spec
+               git push
+               cd ..
        fi
 done
 rm -rf $tmpd