]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix 3.1 manuals snapshot
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 28 Aug 2009 03:41:17 +0000 (15:41 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 28 Aug 2009 03:41:17 +0000 (15:41 +1200)
mksnapshot.sh

index 7ddab15a0d6b3b8e65667cc9de5bd90a6b98597a..a1531d49d45615650d6030f99419a6565e066cdd 100755 (executable)
@@ -101,10 +101,13 @@ fi
 # Collate Manual Pages and generate HTML versions
 if (groff --help >/dev/null); then
        make -C ${tmpdir}/doc all
-        for f in `ls -1 ${tmpdir}/helpers/*/*/*.8 ${tmpdir}/doc/*.8 ${tmpdir}/tools/*.1 ${tmpdir}/tools/*.8` ; do
+       if [ ! -d ${tmpdir}/doc/manuals ] ; then
+               mkdir -p ${tmpdir}/doc/manuals
+       fi
+       for f in `ls -1 ${tmpdir}/helpers/*/*/*.8 ${tmpdir}/doc/*.8 ${tmpdir}/tools/*.1 ${tmpdir}/tools/*.8 2>/dev/null` ; do
                cp $f ${tmpdir}/doc/manuals/
        done
-        for f in `ls -1 ${tmpdir}/doc/manuals/*.1  ${tmpdir}/doc/manuals/*.8` ; do
+       for f in `ls -1 ${tmpdir}/doc/manuals/*.1  ${tmpdir}/doc/manuals/*.8 2>/dev/null` ; do
                cat ${f} | groff -E -Thtml -mandoc >${f}.html
        done
        sh -c "cd ${tmpdir}/doc/manuals && tar -zcf $PWD/${PACKAGE}-${VERSION}-${date}-manuals.tar.gz *.html *.1 *.8"