summaryrefslogtreecommitdiff
path: root/libarchive/libarchive-2.5.5/doc/update.sh
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-08-21 20:11:09 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-08-21 20:11:09 +0200
commit3d051722dea893c1b813db8bbeae1430b9eddd52 (patch)
tree6ffdcc7574ed7d5fcfe44aa910dc38b8482fffdb /libarchive/libarchive-2.5.5/doc/update.sh
parent91d8a99387576216086c74b34b64efe468c2cd7b (diff)
downloadtuxcmd-modules-3d051722dea893c1b813db8bbeae1430b9eddd52.tar.xz
Update libarchive to v2.5.5
Diffstat (limited to 'libarchive/libarchive-2.5.5/doc/update.sh')
-rw-r--r--libarchive/libarchive-2.5.5/doc/update.sh47
1 files changed, 47 insertions, 0 deletions
diff --git a/libarchive/libarchive-2.5.5/doc/update.sh b/libarchive/libarchive-2.5.5/doc/update.sh
new file mode 100644
index 0000000..644b90a
--- /dev/null
+++ b/libarchive/libarchive-2.5.5/doc/update.sh
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+#
+# Simple script to repopulate the 'doc' tree from
+# the mdoc man pages stored in each project.
+#
+
+# Remove existing manpages from the doc tree
+chmod -R +w man text
+rm -f man/*.[135]
+rm -f text/*.[135]
+
+# Build Makefile in 'man' directory
+cd man
+echo > Makefile
+echo "default: all" >>Makefile
+echo >>Makefile
+all="all:"
+for d in libarchive tar cpio; do
+ for f in ../../$d/*.[135]; do
+ echo >> Makefile
+ echo `basename $f`: ../mdoc2man.awk $f >> Makefile
+ echo " awk -f ../mdoc2man.awk < $f > `basename $f`" >> Makefile
+ all="$all `basename $f`"
+ done
+done
+echo $all >>Makefile
+cd ..
+
+# Rebuild Makefile in 'text' directory
+cd text
+echo > Makefile
+echo "$all" >>Makefile
+echo >>Makefile
+for d in libarchive tar cpio; do
+ for f in ../../$d/*.[135]; do
+ echo >> Makefile
+ echo `basename $f`: $f >> Makefile
+ echo " nroff -mdoc $f | col -b > `basename $f`" >> Makefile
+ done
+done
+cd ..
+
+# Convert all of the manpages to -man format.
+(cd man && make)
+# Format all of the manpages to text
+(cd text && make)