]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix warnings in make distcheck.
authorTim Kientzle <kientzle@gmail.com>
Sat, 27 Aug 2011 22:17:13 +0000 (18:17 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sat, 27 Aug 2011 22:17:13 +0000 (18:17 -0400)
SVN-Revision: 3654

doc/update.sh

index 8f4e619321080901be4184666d089ee05cd6fa09..9526d95ac9b32755bbd44e75a9a7fd63e5c8641b 100755 (executable)
@@ -6,13 +6,15 @@
 #
 
 # 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 ..
 
 # Build Makefile in 'man' directory
 cd man
-rm -f *.[135]
+chmod +w .
+rm -f *.[135] Makefile
 echo > Makefile
 echo "default: all" >>Makefile
 echo >>Makefile
@@ -28,8 +30,10 @@ echo $all >>Makefile
 cd ..
 
 # Rebuild Makefile in 'text' directory
+test -d text || mkdir text
 cd text
-rm -f *.txt
+chmod +w .
+rm -f *.txt Makefile
 echo > Makefile
 echo "default: all" >>Makefile
 echo >>Makefile
@@ -45,8 +49,10 @@ echo $all >>Makefile
 cd ..
 
 # Rebuild Makefile in 'pdf' directory
+test -d pdf || mkdir pdf
 cd pdf
-rm -f *.pdf
+chmod +w .
+rm -f *.pdf Makefile
 echo > Makefile
 echo "default: all" >>Makefile
 echo >>Makefile
@@ -62,8 +68,10 @@ echo $all >>Makefile
 cd ..
 
 # Build Makefile in 'html' directory
+test -d html || mkdir html
 cd html
-rm -f *.html
+chmod +w .
+rm -f *.html Makefile
 echo > Makefile
 echo "default: all" >>Makefile
 echo >>Makefile
@@ -79,8 +87,10 @@ echo $all >>Makefile
 cd ..
 
 # Build Makefile in 'wiki' directory
+test -d wiki || mkdir wiki
 cd wiki
-rm -f *.wiki
+chmod +w .
+rm -f *.wiki Makefile
 echo > Makefile
 echo "default: all" >>Makefile
 echo >>Makefile