summaryrefslogtreecommitdiff
path: root/miralib/manual/printman
blob: 6786e7c0bd96343d14e5a2a8ecbcd23bdc8dfb6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#! /bin/sh
if test -f contents
then cat contents
else echo printman: no contents; exit
fi
if test -f ../.version
then read VERSION < ../.version
else VERSION=??
fi
echo "printout of online manual pages for version $VERSION"
cat .epoch
echo
cat permission
echo
for i in ? ??
do  test "$i" = "99" && exit
    echo ::::::::::::::::::::::
    echo $i
    echo ::::::::::::::::::::::
    if test -d $i
    then if test -f $i/contents
         then cat $i/contents
         else echo $i: no contents; break
         fi
         for j in $i/?
         do echo ::::::::::::::::::::::
            if test -d $j
            then echo $j omitted           #don't go into 3rd level
                 echo ::::::::::::::::::::::
            else echo $j
                 echo ::::::::::::::::::::::
                 cat $j
            fi
         done
    else cat $i
    fi
done
echo ::::::::::::::::::::::
echo APPENDIX
echo ::::::::::::::::::::::
echo
cat 100