X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=relup.sh;h=642621842e4f52b465643b2e534436b016a7d123;hb=3e9a7bf0474933245b19c717f7180bde09eb387b;hp=f7b604025dbea93c0369378623fa6921eec6de7e;hpb=9f756788263c91696adfc01a4a900750f16c4786;p=packages%2Frpm-build-tools.git diff --git a/relup.sh b/relup.sh index f7b6040..6426218 100755 --- 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