1#! /bin/sh 2# Build texi2html.temp from $(texi2html_sources). 3# 4# Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 5# 2009, 2010 Free Software Foundation, Inc. 6# 7# This file is free software; as a special exception the author gives 8# unlimited permission to copy and/or distribute it, with or without 9# modifications, as long as this notice is preserved. 10# 11# This program is distributed in the hope that it will be useful, but 12# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the 13# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 15if test -z "$9"; then 16 echo "$0: expected nine arguments, see Makefile.am." >&2 17 exit 1 18fi 19 20echo "generating $1 from $2 and $3 $4 $5 $6 $7 $8 $9" 21 22sed -e '4a\ 23'"# $1: generated by `basename $0` from $2 and $3 $4 $5 $6 $7 $8 $9" \ 24 -e "/@MYSIMPLE@/r $3" \ 25 -e "/@T2H_I18N@/r $4" \ 26 -e "/@INIT@/r $5" \ 27 -e "/@T2H_TRANSLATIONS_FILE@/r $6" \ 28 -e "/@T2H_L2H_INIT@/r $7" \ 29 -e "/@T2H_L2H@/r $8" \ 30 -e "/@T2H_DOCUMENT_LANGUAGES@/r $9" \ 31 $2 >$1 32 33if test $? -ne 0; then 34 echo "$0: failed to generate $1, moving to -bad, goodbye." >&2 35 mv $1 $1-bad 36 exit 1 37fi 38