r42226 - /scripts/dch-note
ryan52-guest at users.alioth.debian.org
ryan52-guest at users.alioth.debian.org
Fri Aug 21 01:30:46 UTC 2009
Author: ryan52-guest
Date: Fri Aug 21 01:30:38 2009
New Revision: 42226
URL: http://svn.debian.org/wsvn/?sc=1&rev=42226
Log:
add support for --waits
Modified:
scripts/dch-note
Modified: scripts/dch-note
URL: http://svn.debian.org/wsvn/scripts/dch-note?rev=42226&op=diff
==============================================================================
--- scripts/dch-note (original)
+++ scripts/dch-note Fri Aug 21 01:30:38 2009
@@ -4,12 +4,21 @@
while true; do
case "$1" in
- --ignore)
- MESSAGE="IGNORE_VERSION: $(dpkg-parsechangelog | sed -n '/Version:/ {s/Version: //; p;}') # "
+ --ignore|--ignore-version)
+ MESSAGE="IGNORE-VERSION: $(dpkg-parsechangelog | sed -n '/Version:/ {s/Version: //; p;}') # "
shift
;;
--unreleased)
dch --dist UNRELEASED "" --force-distribution
+ shift
+ ;;
+ --waits|--waits-for)
+ shift
+ FIRST_LINE="WAITS-FOR: $1"
+ if [ -n "$2" ]; then
+ FIRST_LINE="${FIRST_LINE} $2"
+ fi
+ shift
shift
;;
*)
@@ -24,7 +33,12 @@
MESSAGE="${MESSAGE}$@"
echo > $F_MESSAGE
-echo "$MESSAGE" | fmt | sed 's/^/ /' >> $F_MESSAGE
+if [ -n "$FIRST_LINE" ]; then
+ echo "$FIRST_LINE" | sed 's/^/ /' >> $F_MESSAGE
+fi
+if [ -n "$MESSAGE" ]; then
+ echo "$MESSAGE" | fmt | sed 's/^/ /' >> $F_MESSAGE
+fi
head -1 debian/changelog > $F_HEADER
sed '1 d' debian/changelog > $F_REST
More information about the Pkg-perl-cvs-commits
mailing list