freebsd-ports/lang/go/files/patch-doc__progs__run
Julien Laffaye 9e2a5b4cd3 - Update to 1.1.1
- Remove bash and bison dependencies
- Specify the PATH in regression-test target

PR:             179529
Submitted by:   koobs
2013-06-16 10:25:11 +00:00

11 lines
392 B
Text

--- ./doc/progs/run.orig 2013-06-09 23:20:14.695515753 +1000
+++ ./doc/progs/run 2013-06-09 23:20:14.695515753 +1000
@@ -87,7 +87,7 @@
# Write to temporary file to avoid mingw bash bug.
TMPFILE="${TMPDIR:-/tmp}/gotest3.$USER"
-function testit {
+testit () {
./$1 >"$TMPFILE" 2>&1 || true
x=$(echo $(cat "$TMPFILE")) # extra echo canonicalizes
if ! echo "$x" | grep "$2" > /dev/null