29 lines
912 B
Plaintext
29 lines
912 B
Plaintext
# This file is part of the PD system
|
|
# Copyright (C) 1998 Ralf Hartmut Gueting, Fachbereich Informatik, FernUniversitaet Hagen
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation; either version 2
|
|
# of the License, or (at your option) any later version.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#!/bin/bash
|
|
#
|
|
# pd2html - Converts a PD file to a HTML file
|
|
#
|
|
# May 2004, M. Spiekermann
|
|
|
|
pdFile="$1"
|
|
htmlFile="$1.html"
|
|
|
|
if { ! pdtabs < $pdFile | makehtml > /dev/null; }; then
|
|
|
|
printf "\n PD-Error: Could not create $htmlFile! \n\n"
|
|
exit 1
|
|
fi
|
|
pdtabs < $pdFile | makehtml > $htmlFile
|
|
|