Commit c037d3f2 authored by Russ Cox's avatar Russ Cox

build: fix on Linux

On other systems the temporary directory name
will have a .XXXXXX in the middle of it.  Oh well.

R=bradfitz
CC=golang-dev
https://golang.org/cl/5504049
parent ac3028f0
......@@ -19,7 +19,7 @@ do
export GOOS='$GOOS'
export GOARCH='$GOARCH'
export WORK=$(mktemp -d -t go-build)
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e
......
......@@ -5,7 +5,7 @@
export GOOS=darwin
export GOARCH=386
export WORK=$(mktemp -d -t go-build)
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e
......
......@@ -5,7 +5,7 @@
export GOOS=darwin
export GOARCH=amd64
export WORK=$(mktemp -d -t go-build)
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e
......
......@@ -5,7 +5,7 @@
export GOOS=freebsd
export GOARCH=386
export WORK=$(mktemp -d -t go-build)
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e
......
......@@ -5,7 +5,7 @@
export GOOS=freebsd
export GOARCH=amd64
export WORK=$(mktemp -d -t go-build)
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e
......
......@@ -5,7 +5,7 @@
export GOOS=linux
export GOARCH=386
export WORK=$(mktemp -d -t go-build)
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e
......
......@@ -5,7 +5,7 @@
export GOOS=linux
export GOARCH=amd64
export WORK=$(mktemp -d -t go-build)
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e
......
......@@ -5,7 +5,7 @@
export GOOS=linux
export GOARCH=arm
export WORK=$(mktemp -d -t go-build)
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e
......
......@@ -5,7 +5,7 @@
export GOOS=netbsd
export GOARCH=386
export WORK=$(mktemp -d -t go-build)
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e
......
......@@ -5,7 +5,7 @@
export GOOS=netbsd
export GOARCH=amd64
export WORK=$(mktemp -d -t go-build)
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e
......
......@@ -5,7 +5,7 @@
export GOOS=openbsd
export GOARCH=386
export WORK=$(mktemp -d -t go-build)
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e
......
......@@ -5,7 +5,7 @@
export GOOS=openbsd
export GOARCH=amd64
export WORK=$(mktemp -d -t go-build)
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e
......
......@@ -5,7 +5,7 @@
export GOOS=plan9
export GOARCH=386
export WORK=$(mktemp -d -t go-build)
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e
......
......@@ -5,7 +5,7 @@
export GOOS=windows
export GOARCH=386
export WORK=$(mktemp -d -t go-build)
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e
......
......@@ -5,7 +5,7 @@
export GOOS=windows
export GOARCH=amd64
export WORK=$(mktemp -d -t go-build)
export WORK=$(mktemp -d -t go-build.XXXXXX)
trap "rm -rf $WORK" EXIT SIGINT SIGTERM
set -e
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment