doc: remove unsued progs and makehtml script, update progs/run
Due to removal of go_tutorial, unused programs are removed.
makehtml is unnecessary (it also gives wrong messages when
the destination file doesn't exist)
progs/run now compiles all remaining programs under doc/progs.
Fixes #3076 (again)
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5755053
diff --git a/doc/progs/run b/doc/progs/run
index e3d5c12..9d4669b 100755
--- a/doc/progs/run
+++ b/doc/progs/run
@@ -23,14 +23,19 @@
error4
"
-all=$(echo $defer_panic_recover $effective_go $error_handling slices go1)
+law_of_reflection="
+ interface
+ interface2
+"
+
+all=$(echo $defer_panic_recover $effective_go $error_handling $law_of_reflection slices go1)
for i in $all; do
go build $i.go
done
# Write to temporary file to avoid mingw bash bug.
-TMPFILE="/tmp/gotest3.$USER"
+TMPFILE="${TMPDIR:-/tmp}/gotest3.$USER"
function testit {
./$1 >"$TMPFILE" 2>&1 || true
@@ -50,4 +55,6 @@
testit go1 '^Christmas is a holiday: true Sleeping for 0.123s.*go1.go already exists$'
+testit interface2 "^type: float64$"
+
rm -f $all "$TMPFILE"