summaryrefslogtreecommitdiff
path: root/source/ap/man-pages/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/man-pages/doinst.sh')
-rw-r--r--source/ap/man-pages/doinst.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/ap/man-pages/doinst.sh b/source/ap/man-pages/doinst.sh
new file mode 100644
index 00000000..f42fcb48
--- /dev/null
+++ b/source/ap/man-pages/doinst.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+if [ ! -e usr/man/whatis ]; then
+ mv usr/man/whatis.sample usr/man/whatis
+elif [ "$(md5sum usr/man/whatis)" = "$(md5sum usr/man/whatis.sample)" ]; then
+ # toss the redundant copy
+ rm usr/man/whatis.sample
+fi