summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-10-28 13:15:52 +0100
committerTobi Oetiker <tobi@oetiker.ch>2007-10-28 13:15:52 +0100
commit07608687a2dac998c782608cf230f0b019c8f8e9 (patch)
treefe30c30094694ad35e194898277b27f75f82d74a /Makefile
parent9f82cdecb8422667ca6477c4776a7a050e2c06ff (diff)
downloadsmokeping-07608687a2dac998c782608cf230f0b019c8f8e9.tar.gz
smokeping-07608687a2dac998c782608cf230f0b019c8f8e9.tar.xz
prepare for the release of smokeping-2.2.6
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index a2a9649..8d8aac3 100644
--- a/Makefile
+++ b/Makefile
@@ -142,10 +142,6 @@ doc/smokeping_config.pod: lib/Smokeping.pm
$(MAKEPOD) > $@
doc/smokeping_examples.pod: lib/Smokeping/Examples.pm etc/config.dist
$(GENEX)
-patch:
- $(PERL) -i~ -p -e 's/VERSION="\d.*?"/VERSION="$(NUMVERSION)"/' lib/Smokeping.pm
- $(PERL) -i~ -p -e 's/Smokeping \d.*?;/Smokeping $(NUMVERSION);/' bin/smokeping.dist htdocs/smokeping.cgi.dist bin/tSmoke.dist
- $(PERL) -i~ -p -e 'do { my @d = localtime; my $$d = (1900+$$d[5])."/".(1+$$d[4])."/".$$d[3]; print "$$d -- released version $(VERSION)\n\n" } unless $$done++ || /version $(VERSION)/' CHANGES
killdoc:
-rm doc/*.[1357] doc/*.txt doc/*.html doc/Smokeping/* doc/Smokeping/probes/* doc/Smokeping/matchers/* doc/Smokeping/sorters/* doc/Config/* doc/examples/* doc/smokeping_examples.pod doc/smokeping_config.pod doc/smokeping.pod doc/smokeping.cgi.pod
@@ -153,16 +149,17 @@ killdoc:
doc: killdoc ref examples man html txt rename-man
# patch first so Smokeping.pm is older than smokeping_config.pod in the tarball
-smokeping-2.2.6.tar.gz: patch commit
+smokeping-$(VERSION).tar.gz:
+ $(PERL) -i~ -p -e 's/VERSION="\d.*?"/VERSION="$(NUMVERSION)"/' lib/Smokeping.pm
+ $(PERL) -i~ -p -e 's/Smokeping \d.*?;/Smokeping $(NUMVERSION);/' bin/smokeping.dist htdocs/smokeping.cgi.dist bin/tSmoke.dist
+ $(PERL) -i~ -p -e 'do { my @d = localtime; my $$d = (1900+$$d[5])."/".(1+$$d[4])."/".$$d[3]; print "$$d -- released version $(VERSION)\n\n" } unless $$done++ || /version $(VERSION)/' CHANGES
+ svn commit -m "prepare for the release of smokeping-$(VERSION)"
svn checkout $(SVNREPO)/trunk/software smokeping-$(VERSION)
(cd smokeping-$(VERSION) && make doc)
tar czvf smokeping-$(VERSION).tar.gz --exclude .svn smokeping-$(VERSION)
rm -rf smokeping-$(VERSION)
-commit:
- svn commit -m "prepare for the release of smokeping-$(VERSION)"
-
-dist: smokeping-2.2.6.tar.gz
+dist: smokeping-$(VERSION).tar.gz
scp CHANGES smokeping-$(VERSION).tar.gz oposs@oss.oetiker.ch:public_html/smokeping/pub/
tag: dist