]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.0.1
authorfred <fred>
Tue, 9 Jun 1998 14:08:42 +0000 (14:08 +0000)
committerfred <fred>
Tue, 9 Jun 1998 14:08:42 +0000 (14:08 +0000)
stepmake/bin/text2html.sh [new file with mode: 0644]

diff --git a/stepmake/bin/text2html.sh b/stepmake/bin/text2html.sh
new file mode 100644 (file)
index 0000000..0547aae
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+# text2html.sh
+
+if [ $# -ne 2 ]; then
+       echo "Usage: text2html TEXT-FILE HTML-FILENAME"
+       exit 2
+fi
+
+infile=$1
+outfile=$2
+rm -f $outfile
+echo "<body>" > $outfile
+echo "<xmp>" >> $outfile
+cat $infile >> $outfile
+echo "</xmp>" >> $outfile
+echo "</body>" >> $outfile
+