summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@gmail.com>2009-03-22 13:17:27 -0400
committerTim Kientzle <kientzle@gmail.com>2009-03-22 13:17:27 -0400
commitbad5bf0286eb8468a98bbce02110487778b7063b (patch)
tree24e4e1e33ca584b779cfb8d9ba53f6b92510f2a5 /doc
parent71e7851216b3ca3a01eeb0da271575302f3129e8 (diff)
downloadlibarchive-bad5bf0286eb8468a98bbce02110487778b7063b.tar.gz
Issue 16: Change the text files to all end in '.txt' for the
convenience of file browsers (including Windows shell, KDE, Mac OS Finder, etc) that use file extensions as a type hint. SVN-Revision: 835
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/update.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/doc/update.sh b/doc/update.sh
index 385173bb..925e09b6 100755
--- a/doc/update.sh
+++ b/doc/update.sh
@@ -8,7 +8,8 @@
# Remove existing manpages from the doc tree
chmod -R +w man text
rm -f man/*.[135]
-rm -f text/*.[135]
+rm -f text/*.txt
+rm -f pdf/*.pdf
# Build Makefile in 'man' directory
cd man
@@ -30,15 +31,18 @@ cd ..
# Rebuild Makefile in 'text' directory
cd text
echo > Makefile
-echo "$all" >>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`: $f >> Makefile
- echo " nroff -mdoc $f | col -b > `basename $f`" >> Makefile
+ echo `basename $f`.txt: $f >> Makefile
+ echo " nroff -mdoc $f | col -b > `basename $f`.txt" >> Makefile
+ all="$all `basename $f`.txt"
done
done
+echo $all >>Makefile
cd ..
# Rebuild Makefile in 'pdf' directory
@@ -58,9 +62,9 @@ done
echo $all >>Makefile
cd ..
-# Convert all of the manpages to -man format.
+# Convert all of the manpages to -man format
(cd man && make)
# Format all of the manpages to text
(cd text && make)
-# Format all of the manpages in PDF directory.
+# Format all of the manpages to PDF
(cd pdf && make)