--- a/index.sh Wed Jul 20 12:37:29 2011 +0300
+++ b/index.sh Wed Jul 20 14:10:15 2011 +0300
@@ -21,10 +21,16 @@
name=${file%.${ext}}
case $ext in
txt)
- printf ' <li><a href="%s.txt" target="article">%s</a>\n' $name $name
+ case "$1" in
+ chm) printf ' <li><a href="%s.txt">%s</a>\n' $name $name ;;
+ frame) printf ' <li><a href="%s.txt" target="article">%s</a>\n' $name $name ;;
+ esac
;;
rst)
- printf ' <li><a href="%s.html" target="article">%s</a>\n' $name $name
+ case "$1" in
+ chm) printf ' <li><a href="%s.html">%s</a>\n' $name $name ;;
+ frame) printf ' <li><a href="%s.html" target="article">%s</a>\n' $name $name ;;
+ esac
;;
esac
done