mirror of
https://github.com/golang/go
synced 2024-11-21 11:14:40 -07:00
49d82b4ca1
Originally published on The Go Programming Language Blog, August 4 2010. http://blog.golang.org/2010/08/defer-panic-and-recover.html Update #2547 R=golang-dev, r, r CC=golang-dev https://golang.org/cl/5479053
18 lines
436 B
Bash
Executable File
18 lines
436 B
Bash
Executable File
#!/bin/sh
|
|
# Copyright 2009 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
set -e
|
|
|
|
TMPL=${1:-go_tutorial.tmpl} # input file
|
|
HTML=$(dirname $TMPL)/$(basename $TMPL .tmpl).html # output file
|
|
|
|
if ! test -w $HTML
|
|
then
|
|
echo 1>&2 makehtml: cannot open $HTML for write
|
|
exit 1
|
|
fi
|
|
|
|
make tmpltohtml && ./tmpltohtml $TMPL > $HTML
|