File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ if [ "$progdir" = "$program" ]; then progdir="."; fi
77if [ " $progdir " = " ." ]; then progdir=" $PWD " ; fi
88parent=$( dirname " $progdir " )
99if [ " $parent " = " ." ]; then parent=" $PWD " ; fi
10+ if [[ $( uname) =~ CYGWIN.* ]]; then parent=$( echo " $parent " | sed -e ' s/^\/cygdrive\/\(.\)/\1:/' ) ; fi
1011
1112
1213function usage() {
@@ -60,7 +61,7 @@ trap 'echo "$program($LINENO): Command failed with error code $? ([$$] $0 $*)";
6061
6162# Default values
6263IMAGE=ietf/datatracker-environment
63- TAG=$( basename " $( svn info " $parent " | grep ^URL | awk ' {print $2}' ) " )
64+ TAG=$( basename " $( svn info " $parent " | grep ^URL | awk ' {print $2}' ) | tr -d '\r') " )
6465LOCAL=1
6566
6667# Option parsing
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ if [ "$progdir" = "$program" ]; then progdir="."; fi
77if [ " $progdir " = " ." ]; then progdir=" $PWD " ; fi
88parent=$( dirname " $progdir " )
99if [ " $parent " = " ." ]; then parent=" $PWD " ; fi
10+ if [[ $( uname) =~ CYGWIN.* ]]; then parent=$( echo " $parent " | sed -e ' s/^\/cygdrive\/\(.\)/\1:/' ) ; fi
1011
1112
1213function usage() {
@@ -68,7 +69,7 @@ trap 'echo "$program($LINENO): Command failed with error code $? ([$$] $0 $*)";
6869
6970# Option parsing
7071shortopts=hV
71- args=$( getopt -o$shortopts $SV $ *)
72+ args=$( getopt -o$shortopts $* )
7273if [ $? != 0 ] ; then die " Terminating..." >&2 ; exit 1 ; fi
7374set -- $args
7475
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ if [ "$progdir" = "$program" ]; then progdir="."; fi
77if [ " $progdir " = " ." ]; then progdir=" $PWD " ; fi
88parent=$( dirname " $progdir " )
99if [ " $parent " = " ." ]; then parent=" $PWD " ; fi
10+ if [[ $( uname) =~ CYGWIN.* ]]; then parent=$( echo " $parent " | sed -e ' s/^\/cygdrive\/\(.\)/\1:/' ) ; fi
1011
1112
1213function usage() {
@@ -61,7 +62,7 @@ trap 'echo "$program($LINENO): Command failed with error code $? ([$$] $0 $*)";
6162
6263# Option parsing
6364shortopts=hvV
64- args=$( getopt -o$shortopts $SV $ *)
65+ args=$( getopt -o$shortopts $* )
6566if [ $? != 0 ] ; then die " Terminating..." >&2 ; exit 1 ; fi
6667set -- $args
6768
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ if [ "$progdir" = "$program" ]; then progdir="."; fi
77if [ " $progdir " = " ." ]; then progdir=" $PWD " ; fi
88parent=$( dirname " $progdir " )
99if [ " $parent " = " ." ]; then parent=" $PWD " ; fi
10+ if [[ $( uname) =~ CYGWIN.* ]]; then parent=$( echo " $parent " | sed -e ' s/^\/cygdrive\/\(.\)/\1:/' ) ; fi
1011
1112
1213function usage() {
@@ -66,9 +67,8 @@ REPO="ietf/datatracker-environment"
6667CACHED=' :cached'
6768
6869# Option parsing
69- shortopts=hp:VcC
70-
71- args=$( getopt -o$shortopts $SV $* )
70+ shortopts=cChp:V
71+ args=$( getopt -o$shortopts $* )
7272if [ $? != 0 ] ; then die " Terminating..." >&2 ; exit 1 ; fi
7373set -- $args
7474
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ if [ "$progdir" = "$program" ]; then progdir="."; fi
77if [ " $progdir " = " ." ]; then progdir=" $PWD " ; fi
88parent=$( dirname " $progdir " )
99if [ " $parent " = " ." ]; then parent=" $PWD " ; fi
10+ if [[ $( uname) =~ CYGWIN.* ]]; then parent=$( echo " $parent " | sed -e ' s/^\/cygdrive\/\(.\)/\1:/' ) ; fi
1011
1112
1213function usage() {
@@ -56,12 +57,12 @@ function version() {
5657trap ' echo "$program($LINENO): Command failed with error code $? ([$$] $0 $*)"; exit 1' ERR
5758
5859# Option parsing
59- shortopts=DLZhqvV
60+ shortopts=DLZhV
6061LOAD=1
6162DOWNLOAD=1
6263DROP=1
6364
64- args=$( getopt -o$shortopts $SV $ *)
65+ args=$( getopt -o$shortopts $* )
6566if [ $? != 0 ] ; then die " Terminating..." >&2 ; exit 1 ; fi
6667set -- $args
6768
You can’t perform that action at this time.
0 commit comments