From: Amos Jeffries Date: Fri, 28 Aug 2009 03:41:17 +0000 (+1200) Subject: Fix 3.1 manuals snapshot X-Git-Tag: SQUID_3_2_0_1~755 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5406f265c73080c2bc027d7370a5c35f14b7e961;p=thirdparty%2Fsquid.git Fix 3.1 manuals snapshot --- diff --git a/mksnapshot.sh b/mksnapshot.sh index 7ddab15a0d..a1531d49d4 100755 --- a/mksnapshot.sh +++ b/mksnapshot.sh @@ -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"