diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2004-06-19 02:39:07 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2004-06-19 02:39:07 +0000 |
commit | f4f4b5ff37b19df733987670a5689e3f49de55ca (patch) | |
tree | ef8a15db67d348907cc4abc0e1701046d04fa313 /makerelease | |
parent | 7127ff22e388f29f217f125ac9ef11dd4f5a84b4 (diff) | |
download | fetchmail-f4f4b5ff37b19df733987670a5689e3f49de55ca.tar.gz fetchmail-f4f4b5ff37b19df733987670a5689e3f49de55ca.tar.bz2 fetchmail-f4f4b5ff37b19df733987670a5689e3f49de55ca.zip |
This is the large automake/gettext commit.
It cleans up the whole build system and drops generated files
such as intl/ and some from po/.
The package version is moved to configure.in.
HTML -> txt conversion is now done in html2txt.sh
To bootstrap the package, read README.svn, make sure
you have all prerequisite packages installed, then
run ./bootstrap.sh.
svn path=/trunk/; revision=3907
Diffstat (limited to 'makerelease')
-rwxr-xr-x | makerelease | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/makerelease b/makerelease index 035ea012..41ddf038 100755 --- a/makerelease +++ b/makerelease @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # # Make a fetchmail release. Must be run as root, to make RPMs. # Dumps a release notice and diffs as a MIME multipart message @@ -13,6 +13,7 @@ $svnrepos = "svn://svn.berlios.de/$project"; $website = "http://developer.berlios.de/projects/$project"; $mailfrom = "<$project-devel-owner\@lists.berlios.de> (Fetchmail Development Team)"; +# parse options $diffs = 0; $verbose = 0; $null = ">/dev/null"; @@ -35,13 +36,15 @@ while ($i = shift @ARGV) die "Error: Unknown option: $i\n"; } - -$version=`grep 'VERSION *=' Makefile.in`; -$version =~ /VERSION *= *(.*)/; +# extract version from source +$version=`grep 'AC_INIT' configure.in`; +$version =~ /AC_INIT\([^,]*,\[?([0-9.]+)\]?\)/; $version = $1; +die "cannot determine version" unless defined $1; $tag = "RELEASE_$version"; $tag =~ tr/./-/; +# extract existing tags open(ID, "svn ls $svnrepos/tags|"); while (<ID>) { if (m{^(RELEASE_.*)/}) { @@ -62,7 +65,12 @@ $ENV{PATH} .= ":./dist-tools:./dist-tools/shipper:."; print "Building $version release, tag $tag, previous tag $oldtag\n"; -if (system("aclocal && autoconf")) { +if (-d autom4te.cache) { + system("rm -rf autom4te.cache") + and die "Failure in removing autom4te.cache"; +} + +if (system("autoreconf -isv")) { die("Failure in regenerating autoconf files\n"); } @@ -71,7 +79,7 @@ if (system("./configure && make clean && make -C po update-po && make clean")) { } print "### Test-building the software...\n"; -if (system("./configure --disable-nls && make clean && make")) { +if (system("./configure && make clean && make all check")) { die("Compilation failure\n"); } |