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 | bbdb57dd67c03cd1ae8a480d807b5b7ddafd62ae (patch) | |
tree | 0225d72a3c9d9d9a7eb3c2f66d5e2f9cbd585775 /bin/gen-DSA | |
parent | 013de226e763f943b03de0ccdf8c1fc144107211 (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 |