From 31ffc5a6a925498f784e6869bb753c863b338ae5 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Wed, 17 Dec 2008 11:48:19 +0000 Subject: [PATCH] follows ldns makedist.sh changes for maintainer releases. git-svn-id: file:///svn/unbound/trunk@1391 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 3 +++ makedist.sh | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index d0d452b7f..3b05bde5c 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +17 December 2008: Wouter + - follows ldns makedist.sh. -rc option. autom4te dir removed. + 16 December 2008: Wouter - follow makedist improvements from ldns, for maintainers prereleases. - snapshot version uses _ not - to help rpm distinguish the diff --git a/makedist.sh b/makedist.sh index 7d2b5e5fc..be318d5d7 100755 --- a/makedist.sh +++ b/makedist.sh @@ -48,6 +48,9 @@ Generate a distribution tar file for NSD. -h This usage information. -s Build a snapshot distribution file. The current date is automatically appended to the current NSD version number. + -rc Build a release candidate, the given string will be added + to the version number + (which will then be unbound-_rc) -d SVN_root Retrieve the NSD source from the specified repository. Detected from svn working copy if not specified. -l ldnsdir Directory where ldns resides. Detected from Makefile. @@ -105,6 +108,7 @@ replace_all () { SNAPSHOT="no" +RC="no" LDNSDIR="" # Parse the command line arguments. @@ -124,6 +128,10 @@ while [ "$1" ]; do LDNSDIR="$2" shift ;; + "-rc") + RC="$2" + shift + ;; *) error "Unrecognized argument -- $1" ;; @@ -205,6 +213,18 @@ version=`./configure --version | head -1 | awk '{ print $3 }'` || \ info "Unbound version: $version" +RECONFIGURE="no" + +if [ "$RC" != "no" ]; then + info "Building Unbound release candidate $RC." + version2="${version}_rc$RC" + info "Version number: $version2" + + replace_text "configure.ac" "AC_INIT(unbound, $version" "AC_INIT(unbound, $version2" + version="$version2" + RECONFIGURE="yes" +fi + if [ "$SNAPSHOT" = "yes" ]; then info "Building Unbound snapshot." version2="$version_`date +%Y%m%d`" @@ -212,9 +232,13 @@ if [ "$SNAPSHOT" = "yes" ]; then replace_text "configure.ac" "AC_INIT(unbound, $version" "AC_INIT(unbound, $version2" version="$version2" + RECONFIGURE="yes" +fi +if [ "$RECONFIGURE" = "yes" ]; then info "Rebuilding configure script (autoconf) snapshot." autoreconf || error_cleanup "Autoconf failed." + rm -r autom4te* || error_cleanup "Failed to remove autoconf cache directory." fi replace_all doc/README