3
# Creates the html pages
9
# Version 0.1 - 24.09.2006
14
if [ ! -s "epgsearch.c" ]; then
15
echo "Cannot find epgsearch.c. Call this script from epgsearch source directory."
19
VERSION="$(awk -F\" '/VERSION/ {print $2; exit;}' epgsearch.c)"
21
for LANGUAGE in $(ls "$DOCSRC"/); do
23
[ ! -d ""$DOCSRC"/$LANGUAGE" ] && continue
24
mkdir -p html/$LANGUAGE
25
rm html/$LANGUAGE/* 2>/dev/null
27
for i in "$DOCSRC"/$LANGUAGE/*.txt; do
28
echo -ne "create html page: ($LANGUAGE) $(basename "$i" ".txt")..."
29
pod2html --infile="$i" --outfile="html/$LANGUAGE/$(basename "$i" ".txt").html" --norecurse --title="Epgsearch Version $VERSION"
37
rm "$DOCSRC"/$LANGUAGE/*~ 2>/dev/null