mirror of https://github.com/tLDP/LDP
24 lines
608 B
Bash
Executable File
24 lines
608 B
Bash
Executable File
#!/bin/bash
|
|
# Time-stamp: <2001-11-18 09:34:08 ccurley buildscript>
|
|
|
|
script=$1
|
|
|
|
# If the actual script exists, and
|
|
if [ -e scripts/$script ]; then
|
|
|
|
# echo "Target $script exists"
|
|
|
|
# if it is newer than the "cooked" version, or the cooked version
|
|
# does not exist, we add in the SGML source, producing the cooked
|
|
# version.
|
|
|
|
if [ scripts/$script -nt scripts/cooked/$script ] || [ ! -e scripts/cooked/$script ] ; then
|
|
|
|
echo "rebuilding $script"
|
|
echo -n '<![ CDATA [' > scripts/cooked/$script
|
|
cat scripts/$script >> scripts/cooked/$script
|
|
echo ']]>' >> scripts/cooked/$script
|
|
|
|
fi
|
|
fi
|