The Go Programming Language

Text file doc/makehtml

     1	#!/bin/sh
     2	# Copyright 2009 The Go Authors. All rights reserved.
     3	# Use of this source code is governed by a BSD-style
     4	# license that can be found in the LICENSE file.
     5	
     6	set -e
     7	
     8	TMPL=${1:-go_tutorial.tmpl}		# input file
     9	HTML=$(basename $TMPL .tmpl).html		# output file (basename)
    10	
    11	if ! test -w $HTML
    12	then
    13		echo 1>&2 makehtml: cannot open $HTML for write
    14		exit 1
    15	fi
    16	
    17	make && ./tmpltohtml $TMPL > $HTML

release.r60.3. Except as noted, this content is licensed under a Creative Commons Attribution 3.0 License.