summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRoman Neuhauser <neuhauser@sigpipe.cz>2011-03-28 05:18:56 -0400
committerRoman Neuhauser <neuhauser@sigpipe.cz>2011-03-28 05:18:56 -0400
commit8b723435f2531d2851a94ccaa70f605110ca05b9 (patch)
treeddd3405cc72e00c004fe7281b2daf81dfec569ca /doc
parent28a5cd83df10723edac70039c6e951af423a5fe5 (diff)
downloadlibarchive-8b723435f2531d2851a94ccaa70f605110ca05b9.tar.gz
doc/update.sh does not break on missing output dirs
SVN-Revision: 3105
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/update.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/update.sh b/doc/update.sh
index 8f4e6193..b5bb7e4b 100755
--- a/doc/update.sh
+++ b/doc/update.sh
@@ -6,6 +6,7 @@
#
# Collect list of man pages, relative to my subdirs
+test -d man || mkdir man
cd man
MANPAGES=`for d in libarchive tar cpio;do ls ../../$d/*.[135];done | grep -v '\.so\.'`
cd ..
@@ -28,6 +29,7 @@ echo $all >>Makefile
cd ..
# Rebuild Makefile in 'text' directory
+test -d text || mkdir text
cd text
rm -f *.txt
echo > Makefile
@@ -45,6 +47,7 @@ echo $all >>Makefile
cd ..
# Rebuild Makefile in 'pdf' directory
+test -d pdf || mkdir pdf
cd pdf
rm -f *.pdf
echo > Makefile