[packages/rpm-build-tools: 1/2] relup: fix breakage from 2d0ad334: relup can take several package names to process
glen
glen at pld-linux.org
Wed Aug 1 17:52:42 CEST 2012
commit d9602bf72862b207aefab36d7b887bb0fae5464f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Aug 1 18:51:48 2012 +0300
relup: fix breakage from 2d0ad334: relup can take several package names to process
relup.sh | 30 ++++++++++++++++--------------
1 file changed, 16 insertions(+), 14 deletions(-)
---
diff --git a/relup.sh b/relup.sh
index 6426218..6680d95 100755
--- a/relup.sh
+++ b/relup.sh
@@ -121,19 +121,21 @@ done
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"
- if [ "$test" != 1 ]; then
- cd $pkg
- git commit -m "$msg" $spec
- git push
- cd ..
- fi
+for rel in $(ls "$tmpd" 2>/dev/null); do
+ packages=$(cat "$tmpd/$rel")
+ for pkg in $packages; do
+ pkgdir=${pkg%/*}
+ spec=${pkg##*/}
+ msg=""
+ [ -n "$message" ] && msg="$msg- $message$n"
+ msg="$msg- release ${rel%%%*} (by relup.sh)"
+ echo git commit -m "$msg" $spec
+ if [ "$test" != 1 ]; then
+ cd $pkgdir
+ git commit -m "$msg" $spec
+ git push
+ cd ..
+ fi
+ done
done
rm -rf $tmpd
More information about the pld-cvs-commit
mailing list