From: Tim Kientzle Date: Sat, 27 Aug 2011 22:17:13 +0000 (-0400) Subject: Fix warnings in make distcheck. X-Git-Tag: v2.8.5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a780c119e97cf4eb262b4f7d2aa22047fd06951;p=thirdparty%2Flibarchive.git Fix warnings in make distcheck. SVN-Revision: 3654 --- diff --git a/doc/update.sh b/doc/update.sh index 8f4e61932..9526d95ac 100755 --- a/doc/update.sh +++ b/doc/update.sh @@ -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