diff options
author | Raphaël Hertzog <hertzog@debian.org> | 2015-07-06 06:51:33 +0000 |
---|---|---|
committer | Raphaël Hertzog <hertzog@debian.org> | 2015-07-06 06:51:33 +0000 |
commit | 317e15fa54f474fbea9db08ec9495db3e5bdefdf (patch) | |
tree | 135b43905c701778388981490382c61e3d1fc3c9 /bin/gen-DSA | |
parent | 0c92c2d9c47b841a2ba7f2b1e9ca60fc0890ea26 (diff) |
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
Diffstat (limited to 'bin/gen-DSA')
-rwxr-xr-x | bin/gen-DSA | 15 |
1 files changed, 15 insertions, 0 deletions
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 |