Create copies of set before iteration
[grml2usb.git] / Makefile
index 982c7ad..5d3a052 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ man-stamp: grml2usb.8.txt grml2iso.8.txt
        # grml2usb:
        asciidoc -d manpage -b docbook grml2usb.8.txt
        sed -i 's/<emphasis role="strong">/<emphasis role="bold">/' grml2usb.8.xml
-       xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml2usb.8.xml
+       xsltproc --novalid --nonet /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml2usb.8.xml
        # ugly hack to avoid duplicate empty lines in manpage
        # notice: docbook-xsl 1.71.0.dfsg.1-1 is broken! make sure you use 1.68.1.dfsg.1-0.2!
        cp grml2usb.8 grml2usb.8.tmp
@@ -26,7 +26,7 @@ man-stamp: grml2usb.8.txt grml2iso.8.txt
        # grml2iso:
        asciidoc -d manpage -b docbook grml2iso.8.txt
        sed -i 's/<emphasis role="strong">/<emphasis role="bold">/' grml2iso.8.xml
-       xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml2iso.8.xml
+       xsltproc --novalid --nonet /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml2iso.8.xml
        # ugly hack to avoid duplicate empty lines in manpage
        # notice: docbook-xsl 1.71.0.dfsg.1-1 is broken! make sure you use 1.68.1.dfsg.1-0.2!
        cp grml2iso.8 grml2iso.8.tmp
@@ -45,8 +45,8 @@ online: all
 tarball: all
        ./tarball.sh
 
-tarball-online: tarball
-       scp grml2usb.tgz grml2usb.tgz.md5.asc grml:/var/www/grml/grml2usb/
+prepare-release:
+       ./tarball.sh --no-gpg
 
 clean:
        rm -rf grml2usb.8.html grml2usb.8.xml grml2usb.8
@@ -54,9 +54,11 @@ clean:
        rm -rf html-stamp man-stamp grml2usb.tar.gz grml2usb.tgz grml2usb.tgz.md5.asc
 
 codecheck:
+       pyflakes grml2usb
        pylint --include-ids=y --max-line-length=120 grml2usb
        # pylint --include-ids=y --disable-msg-cat=C0301 --disable-msg-cat=W0511 grml2usb
        # pylint --reports=n --include-ids=y --disable-msg-cat=C0301 grml2usb
+       pep8 --repeat --ignore E125,E126,E127,E128,E501 grml2usb
 
 # graph:
 #      sudo pycallgraph grml2usb /grml/isos/grml-small_2008.11.iso /dev/sdb1