]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Attempt to bundle manuals the easy way
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 16 Jul 2009 09:49:07 +0000 (21:49 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 16 Jul 2009 09:49:07 +0000 (21:49 +1200)
mksnapshot.sh

index 1ce4a5185c4020bf5492de6db584da3972d486b9..950a076754f77c33d453aba2e22f3231c064647b 100755 (executable)
@@ -101,16 +101,13 @@ fi
 # Collate Manual Pages and generate HTML versions
 if (groff --help >/dev/null); then
        make -C ${tmpdir}/doc all
-       cp ${tmpdir}/doc/*.8 ${tmpdir}/doc/manuals/
-       cp ${tmpdir}/tools/*.8 ${tmpdir}/doc/manuals/
-       cp ${tmpdir}/tools/*.1 ${tmpdir}/doc/manuals/
-        for f in `ls -1 ${tmpdir}/helpers/*/*/*.8` ; do
+        for f in `ls -1 ${tmpdir}/helpers/*/*/*.8 ${tmpdir}/{doc,tools}/*.{1,8}` ; do
                cp $f ${tmpdir}/doc/manuals/
        done
         for f in `ls -1 ${tmpdir}/doc/manuals/*.8` ; 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 *.8"
+       sh -c "cd ${tmpdir}/doc/manuals && tar -zcf $PWD/${PACKAGE}-${VERSION}-${date}-manuals.tar.gz *.{html,1,8}"
        echo ${PACKAGE}-${VERSION}-${date}-manuals.tar.gz >>${tag}.out
 fi