From bbdb57dd67c03cd1ae8a480d807b5b7ddafd62ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Mon, 6 Jul 2015 06:51:33 +0000 Subject: Make bin/gen-DLA a bit more foolproof git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@35336 e39458fd-73e7-0310-bf30-c45bca0a0e42 --- bin/gen-DSA | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'bin/gen-DSA') diff --git a/bin/gen-DSA b/bin/gen-DSA index 395a8f1a93..54cbc8210b 100755 --- a/bin/gen-DSA +++ b/bin/gen-DSA @@ -368,4 +368,19 @@ EOF sed -rn '/^'"$PACKAGE"'\b/{: next;n;/^\s/b next;d};p' $needed_file > $needed_file.new mv $needed_file.new $needed_file echo "$IDMODE text written to ./$IDMODE-$DAID" + if [ "$IDMODE" = "DLA" ]; then + idmode=$(echo "$IDMODE" | tr A-Z a-z) + if [ -d .svn ]; then + echo "Made the following changes:" + svn diff data/$IDMODE/list data/$idmode-needed.txt + fi + warn "you need to commit the changes to data/$IDMODE/list and data/$idmode-needed.txt to actually reserve the $IDMODE-$DAID number and avoid conflicts with others." + if [ -d .svn ]; then + echo -n "Do you want to commit them now ? [Yn] " + read reply + if [ "$reply" = "Y" ] || [ "$reply" = "" ] || [ "$reply" = "y" ]; then + svn commit -m "Reserve $IDMODE-$DAID for $PACKAGE" data/$IDMODE/list data/$idmode-needed.txt + fi + fi + fi fi -- cgit v1.2.3