summaryrefslogtreecommitdiff
path: root/miralib/manual/printman
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-03-04 12:32:20 -0500
committerJakob Kaivo <jkk@ung.org>2022-03-04 12:32:20 -0500
commit55f277e77428d7423ae906a8e1f1324d35b07a7d (patch)
tree5c1c04703dff89c46b349025d2d3ec88ea9b3819 /miralib/manual/printman
import Miranda 2.066 from upstream
Diffstat (limited to 'miralib/manual/printman')
-rwxr-xr-xmiralib/manual/printman42
1 files changed, 42 insertions, 0 deletions
diff --git a/miralib/manual/printman b/miralib/manual/printman
new file mode 100755
index 0000000..6786e7c
--- /dev/null
+++ b/miralib/manual/printman
@@ -0,0 +1,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