[packages/rpm-build-tools] comment some code logic
glen
glen at pld-linux.org
Tue Aug 7 07:08:20 CEST 2012
commit 07ea9b01479e10c61a68b082e5ef28ae4185fc24
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Aug 7 08:08:15 2012 +0300
comment some code logic
relup.sh | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/relup.sh b/relup.sh
index 6680d95..5c308ba 100755
--- a/relup.sh
+++ b/relup.sh
@@ -93,6 +93,11 @@ done
tmpd=$(mktemp -d "${TMPDIR:-/tmp}/relXXXXXX")
topdir=$(rpm -E '%{_topdir}')
+
+# round 1: get packages and update .spec files
+# batches changes for each release
+# TODO: drop this, in git need to commit and push each package separately, no
+# way to group changes as in CVS
cd "$topdir"
for pkg in "$@"; do
name=${pkg%.spec} name=${name##*/}
@@ -119,6 +124,7 @@ for pkg in "$@"; do
echo "$spec" >> "$tmpd/$rel"
done
+# round 2: commit the changes
n="$(echo -e '\nn')"
n="${n%%n}"
for rel in $(ls "$tmpd" 2>/dev/null); do
More information about the pld-cvs-commit
mailing list