From ba21087060fcd1f76b79df45c89f4cb2fe9bf877 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20=C5=9Awi=C4=85tek?= Date: Tue, 10 Jul 2012 17:02:29 +0200 Subject: [PATCH] - works with git, call in main rpm dir (symlink) --- relup.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 -- 2.44.0