Mercurial > hg > chronicle
diff Makefile @ 302:6f1aaf5309c7
Merging in latest release
author | Dominic Cleal <dominic@computerkb.co.uk> |
---|---|
date | Sun, 21 Dec 2008 23:53:28 +0000 |
parents | eba6872a5309 |
children |
line wrap: on
line diff
--- a/Makefile Tue Oct 28 00:44:56 2008 +0000 +++ b/Makefile Sun Dec 21 23:53:28 2008 +0000 @@ -13,7 +13,7 @@ # Only used to build distribution tarballs. # DIST_PREFIX = ${TMP} -VERSION = 3.2 +VERSION = 3.4 BASE = chronicle @@ -44,6 +44,7 @@ @find . -name '*.1' -exec rm \{\} \; @find . -name '*.bak' -exec rm \{\} \; @find . -name '*.tmp' -exec rm \{\} \; + @if [ -e .version ]; then rm -f .version; fi @if [ -d comments ]; then rm -rf comments; fi @if [ -d output ]; then rm -rf output; fi @if [ -e build-stamp ]; then rm -f build-stamp; fi @@ -94,15 +95,16 @@ mv $(DIST_PREFIX)/$(BASE)-$(VERSION).tar.gz . rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION) gpg --armour --detach-sign $(BASE)-$(VERSION).tar.gz + echo $(VERSION) > .version + # # Tidy the code # tidy: - if [ -x /usr/bin/perltidy ]; then \ - perltidy -b -nt -bt=2 -sbt=1 -bl -mbl=3 -sbl -bbs -bbb -anl -lp bin/chronicle ;\ - perltidy -b -nt -bt=2 -sbt=1 -bl -mbl=3 -sbl -bbs -bbb -anl -lp cgi-bin/comments.cgi \ + if [ -x ~/bin/perltidy ]; then \ + ~/bin/perltidy ./bin/chronicle ./cgi-bin/comments.cgi \ ; fi