#!/bin/sh
echo '
The TeX System'
echo 'The TeX System
'
for i in *; do
if [ $i = help ]; then
echo "$i
"
echo ''
continue
fi
if [ -d $i ]; then
echo "$i
"
echo ''
for j in $i/*.dvi $i/*.ps $i/*.tex; do
test -f $j && echo "- `basename $j`"
done
for j in $i/*; do
test -d $j || continue
test -f `echo $j/*.dvi | sed 's/ .*//'` ||
test -f `echo $j/*.ps | sed 's/ .*//'` || continue
echo '
- '`basename $j`
echo '
'
for k in $j/*.dvi $j/*.ps $j/*.tex ; do
test -f $k || continue
echo "- `basename $k`"
done
echo '
'
done
echo '
'
fi
done