[Fai-commit] r5206 - people/michael/experimental
mt at alioth.debian.org
mt at alioth.debian.org
Fri Oct 17 13:16:27 UTC 2008
Author: mt
Date: 2008-10-17 13:16:26 +0000 (Fri, 17 Oct 2008)
New Revision: 5206
Modified:
people/michael/experimental/build-on-alioth
Log:
don't repeat the patch author's name again and again
Modified: people/michael/experimental/build-on-alioth
===================================================================
--- people/michael/experimental/build-on-alioth 2008-10-17 12:12:29 UTC (rev 5205)
+++ people/michael/experimental/build-on-alioth 2008-10-17 13:16:26 UTC (rev 5206)
@@ -20,21 +20,30 @@
build_changelog() {
dh_testdir || exit 3
mv debian/changelog debian/changelog.orig
- echo "fai ($(<$storage/LATEST_BUILD)) unstable; urgency=low" > debian/changelog
- echo >> debian/changelog
- echo " * Experimental FAI based on SVN r$REV" >> debian/changelog
+ echo "fai ($(<$storage/LATEST_BUILD)) unstable; urgency=low" > debian/changelog.new
+ echo >> debian/changelog.new
+ echo " * Experimental FAI based on SVN r$REV" >> debian/changelog.new
for i in `quilt series` ; do
author="`quilt header $i | sed -n 1p | sed 's/^[[:digit:] -]*//'`"
quilt header $i | sed '/^[[:space:]]*$/d' | sed '/^[^[:space:]]/d' | \
sed "s/^[[:space:]]*\*/ [ $author ]\n&/" | \
sed 's/^[[:space:]]\+/ /' | sed 's/^[[:space:]]*\[/ [/' | \
- sed 's/^[[:space:]]*\*/ */' >> debian/changelog
+ sed 's/^[[:space:]]*\*/ */' >> debian/changelog.new
done
- echo >> debian/changelog
- echo " -- FAI Developers <linux-fai-devel at uni-koeln.de> `date -R`" >> debian/changelog
- echo >> debian/changelog
+ echo >> debian/changelog.new
+ echo " -- FAI Developers <linux-fai-devel at uni-koeln.de> `date -R`" >> debian/changelog.new
+ echo >> debian/changelog.new
+ cat debian/changelog.new | perl -n -e '
+ if(/^ (\[.*\])$/) {
+ if($1 ne $author) {
+ $author=$1;
+ } else {
+ next;
+ }
+ }
+ print "$_";' > debian/changelog
cat debian/changelog.orig >> debian/changelog
- rm debian/changelog.orig
+ rm debian/changelog.orig debian/changelog.new
}
REPOS="$1"
More information about the Fai-commit
mailing list