Skip to content

Commit d1ca760

Browse files
committed
Added a --sprint switch to mkdevbranch to avoid switching on the absence of a developer name when creating sprint branches
- Legacy-Id: 17986
1 parent fabc6f8 commit d1ca760

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

bin/mkdevbranch

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ trap 'echo "$program($LINENO): Command failed with error code $? ([$$] $0 $*)";
7878
# Option parsing
7979

8080
# Options
81-
shortopts=hm:M:nvV
82-
longopts=help,meeting=,message=,dry-run,verbose,version
81+
shortopts=hm:M:nsvV
82+
longopts=help,meeting=,message=,dry-run,sprint,verbose,version
8383

8484
# Default values
8585
num=""
@@ -105,6 +105,7 @@ while true ; do
105105
-m| --meeting) num=$2; shift;; # Specify the IETF meeting number
106106
-M| --message) msg=$2; shift;; # Specify extra message text
107107
-n| --dry-run) do="echo -- ==>";; # Only show what would be done
108+
-s| --sprint) SPRINT=1;; # Make branches for sprint sign-ups
108109
-v| --verbose) VERBOSE=1;; # Be more talkative
109110
-V| --version) version; exit;; # Show program version, then exit
110111
--) shift; break;;
@@ -141,13 +142,16 @@ function mksvndir() {
141142
# echo "Copying a database dump to www.ietf.org/lib/dt/sprint/$dump"
142143
# scp /www/tools.ietf.org/tools/$dump ietfa:/a/www/www6s/lib/dt/sprint/
143144

145+
if [ -z "$who" -a -z "$SPRINT" ]; then die "Specify either individual developer name or --sprint"; fi
146+
144147
cd $progdir
145148

146149
if [ "$who" ]; then
147150
mksvndir $who
148151
$do svn cp https://svn.tools.ietf.org/svn/tools/ietfdb/$source https://svn.tools.ietf.org/svn/tools/ietfdb/personal/$who/$target/ -m "New branch for $target"
149152
echo "New branch: ^/personal/$who/$target"
150-
else
153+
fi
154+
if [ "$SPRINT" ]; then
151155
[ "$msg" ] && msg="
152156
$msg
153157
"

0 commit comments

Comments
 (0)