From: Bartosz Świątek Date: Tue, 10 Jul 2012 15:02:29 +0000 (+0200) Subject: - works with git, call in main rpm dir (symlink) X-Git-Url: https://git.tld-linux.org/?p=packages%2Frpm-build-tools.git;a=commitdiff_plain;h=ba21087060fcd1f76b79df45c89f4cb2fe9bf877 - works with git, call in main rpm dir (symlink) --- 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