From ba384d7679698812140a3ef3dd92c12b30816dfd Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Thu, 29 Sep 2011 06:52:21 +0000 Subject: improve release mechanism and add DESTDIR to binary paching --- Makefile.am | 11 ++++------- bin/Makefile.am | 2 +- release-smokeping.sh | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Makefile.am b/Makefile.am index aad7c09..ff127f1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,12 +21,9 @@ SUBDIRS = bin doc etc htdocs lib EXTRA_DIST = setup/build-perl-modules.sh setup/sdbs.inc dist-hook: - echo Version $(PACKAGE_VERSION) >DIST_REVISION - svn info >>DIST_REVISION - cp DIST_REVISION $(distdir)/ $(PERL) -i -p -e '"$(PACKAGE_VERSION)" =~ /(\d+)\.(\d+)\.(\d+)/ and $$v = sprintf("%d.%03d%03d",$$1,$$2,$$3) and s/^\$$VERSION\s+=\s+".+?"/\$$VERSION = "$$d"/' $(distdir)/lib/Smokeping.pm - -# date >DIST_REVISION -# git branch -vv >>DIST_REVISION - +# echo Version $(PACKAGE_VERSION) >DIST_REVISION +# svn info >>DIST_REVISION +# cp DIST_REVISION $(distdir)/ +# diff --git a/bin/Makefile.am b/bin/Makefile.am index 01030c8..dafbdfd 100644 --- a/bin/Makefile.am +++ b/bin/Makefile.am @@ -18,6 +18,6 @@ dist_bin_SCRIPTS = smokeinfo smokeping smokeping_cgi tSmoke install-exec-hook: - [ x$PERL5LIB != x ] && cd "$(bindir)" && $(PERL) -i -p -e 's{^#!.*}{#!$(PERL)}; s{.*# PERL5LIB}{use lib qw($(PERL5LIB)); # PERL5LIB}' smokeinfo smokeping smokeping_cgi tSmoke + [ x$PERL5LIB != x ] && cd "$(DESTDIR)$(bindir)" && $(PERL) -i -p -e 's{^#!.*}{#!$(PERL)}; s{.*# PERL5LIB}{use lib qw($(PERL5LIB)); # PERL5LIB}' smokeinfo smokeping smokeping_cgi tSmoke # EOF diff --git a/release-smokeping.sh b/release-smokeping.sh index 42b47bc..c5ce225 100755 --- a/release-smokeping.sh +++ b/release-smokeping.sh @@ -1,7 +1,7 @@ #!/bin/sh set -e VERSION=`perl -n -e 'm/\QAC_INIT([rrdtool],[\E(.+?)\Q])\E/ && print $1' configure.ac` -svn commit -m "preparing for the release of smokeping-$VERSION" +svn status -q && echo "ERROR: make sure your tree is consistent before release" && exit 1 cd /tmp svn export svn://svn.oetiker.ch/smokeping/trunk/software smokeping-$$ cd smokeping-$$ -- cgit v1.2.3-24-g4f1b