diff options
Diffstat (limited to 'src/bootstrap.bash')
| -rwxr-xr-x | src/bootstrap.bash | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bootstrap.bash b/src/bootstrap.bash index 1e4f1c5081..5a97d52e5f 100755 --- a/src/bootstrap.bash +++ b/src/bootstrap.bash @@ -21,10 +21,16 @@ set -e if [ "$GOOS" = "" -o "$GOARCH" = "" ]; then - echo "usage: GOOS=os GOARCH=arch ./bootstrap.bash" >&2 + echo "usage: GOOS=os GOARCH=arch ./bootstrap.bash [-force]" >&2 exit 2 fi +forceflag="" +if [ "$1" = "-force" ]; then + forceflag=-force + shift +fi + targ="../../go-${GOOS}-${GOARCH}-bootstrap" if [ -e $targ ]; then echo "$targ already exists; remove before continuing" @@ -47,7 +53,7 @@ echo echo "#### Building $targ" echo cd src -./make.bash --no-banner +./make.bash --no-banner $forceflag gohostos="$(../bin/go env GOHOSTOS)" gohostarch="$(../bin/go env GOHOSTARCH)" goos="$(../bin/go env GOOS)" |
