r23206 - /scripts/takeover-for-pkg-perl.sh

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Mon Jul 14 20:02:04 UTC 2008


Author: dmn
Date: Mon Jul 14 20:02:02 2008
New Revision: 23206

URL: http://svn.debian.org/wsvn/?sc=1&rev=23206
Log:
add -a #bugno option to help handle RFAs

Modified:
    scripts/takeover-for-pkg-perl.sh

Modified: scripts/takeover-for-pkg-perl.sh
URL: http://svn.debian.org/wsvn/scripts/takeover-for-pkg-perl.sh?rev=23206&op=diff
==============================================================================
--- scripts/takeover-for-pkg-perl.sh (original)
+++ scripts/takeover-for-pkg-perl.sh Mon Jul 14 20:02:02 2008
@@ -12,6 +12,7 @@
     -s URL      SVN trunk URL (default $SVN)
     -m URL      URL to a message in which the previous maintainer requests the
                 takeover
+    -a #        RFA bug number (conflicts with -m)
     -h          show this text
 
 <package> is the source package name that we take over of. You may list more
@@ -23,16 +24,23 @@
 SVN='svn+ssh://svn.debian.org/svn/pkg-perl'
 TRUNK=''
 MAIL=''
+RFA=''
 
-while getopts t:s:m:h o; do
+while getopts t:s:m:a:h o; do
     case $o in
         h) usage;;
         m) MAIL=$OPTARG;;
         t) TRUNK=$OPTARG;;
         s) SVN=$OPTARG;;
+        a) RFA=$OPTARG;;
     esac
 done
 shift `expr $OPTIND - 1`
+
+if [ -n "$RFA" ] && [ -n "$MAIL" ]; then
+    echo "-m and -a cannot be given at the same time"
+    exit 1
+fi
 
 [ -n "$TRUNK" ] || usage
 
@@ -57,6 +65,9 @@
     if [ -n "$MAIL" ]; then
         TXT="$TXT on maintainer's request ($MAIL)"
     fi
+    if [ -n "$RFA" ]; then
+        TXT="$TXT; Closes: #$RFA -- RFA"
+    fi
 
     dch -i -c $TRUNK/$1/debian/changelog "$TXT"
 




More information about the Pkg-perl-cvs-commits mailing list