3 if [ ! -e "geda_faq.html" ]
5 echo "You must start this program in the toplevel wiki directory"
6 echo "wherever geda_faq.html lives."
10 if [ ! -e "../scripts/removedups.sh" ]
12 echo "../scripts/removedups.sh must exist"
16 files
=`find . -name \*.html -print`
22 cat $i.old |
sed '/\<script type/d' > $i
27 isdetail
=`echo $i | grep _detail`
28 if [ "$isdetail" = "" ]
31 sed 's%media="all" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php?s=all"%media="all" type="text/css" href="lib/exe/css"%g' | \
32 sed 's%media="screen" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php"%media="screen" type="text/css" href="lib/exe/001css"%g' | \
33 sed 's%media="print" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php?s=print"%media="print" type="text/css" href="lib/exe/002css"%g' \
37 sed 's%media="all" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php?s=all"%media="all" type="text/css" href="../lib/exe/css"%g' | \
38 sed 's%media="screen" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php"%media="screen" type="text/css" href="../lib/exe/001css"%g' | \
39 sed 's%media="print" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php?s=print"%media="print" type="text/css" href="../lib/exe/002css"%g' \
48 # Remove duplicate images from _detail
49 ..
/scripts
/removedups.sh
001
50 ..
/scripts
/removedups.sh
002
51 rm -f _media
/001*.png _media
/001*.jpg _media
/002*.png _media
/002*.jpg