mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-23 16:20:26 -05:00
follows ldns makedist.sh changes for maintainer releases.
git-svn-id: file:///svn/unbound/trunk@1391 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
aa1b565b41
commit
31ffc5a6a9
2 changed files with 27 additions and 0 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
17 December 2008: Wouter
|
||||||
|
- follows ldns makedist.sh. -rc option. autom4te dir removed.
|
||||||
|
|
||||||
16 December 2008: Wouter
|
16 December 2008: Wouter
|
||||||
- follow makedist improvements from ldns, for maintainers prereleases.
|
- follow makedist improvements from ldns, for maintainers prereleases.
|
||||||
- snapshot version uses _ not - to help rpm distinguish the
|
- snapshot version uses _ not - to help rpm distinguish the
|
||||||
|
|
|
||||||
24
makedist.sh
24
makedist.sh
|
|
@ -48,6 +48,9 @@ Generate a distribution tar file for NSD.
|
||||||
-h This usage information.
|
-h This usage information.
|
||||||
-s Build a snapshot distribution file. The current date is
|
-s Build a snapshot distribution file. The current date is
|
||||||
automatically appended to the current NSD version number.
|
automatically appended to the current NSD version number.
|
||||||
|
-rc <nr> Build a release candidate, the given string will be added
|
||||||
|
to the version number
|
||||||
|
(which will then be unbound-<version>_rc<number>)
|
||||||
-d SVN_root Retrieve the NSD source from the specified repository.
|
-d SVN_root Retrieve the NSD source from the specified repository.
|
||||||
Detected from svn working copy if not specified.
|
Detected from svn working copy if not specified.
|
||||||
-l ldnsdir Directory where ldns resides. Detected from Makefile.
|
-l ldnsdir Directory where ldns resides. Detected from Makefile.
|
||||||
|
|
@ -105,6 +108,7 @@ replace_all () {
|
||||||
|
|
||||||
|
|
||||||
SNAPSHOT="no"
|
SNAPSHOT="no"
|
||||||
|
RC="no"
|
||||||
LDNSDIR=""
|
LDNSDIR=""
|
||||||
|
|
||||||
# Parse the command line arguments.
|
# Parse the command line arguments.
|
||||||
|
|
@ -124,6 +128,10 @@ while [ "$1" ]; do
|
||||||
LDNSDIR="$2"
|
LDNSDIR="$2"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
"-rc")
|
||||||
|
RC="$2"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
error "Unrecognized argument -- $1"
|
error "Unrecognized argument -- $1"
|
||||||
;;
|
;;
|
||||||
|
|
@ -205,6 +213,18 @@ version=`./configure --version | head -1 | awk '{ print $3 }'` || \
|
||||||
|
|
||||||
info "Unbound version: $version"
|
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
|
if [ "$SNAPSHOT" = "yes" ]; then
|
||||||
info "Building Unbound snapshot."
|
info "Building Unbound snapshot."
|
||||||
version2="$version_`date +%Y%m%d`"
|
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"
|
replace_text "configure.ac" "AC_INIT(unbound, $version" "AC_INIT(unbound, $version2"
|
||||||
version="$version2"
|
version="$version2"
|
||||||
|
RECONFIGURE="yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$RECONFIGURE" = "yes" ]; then
|
||||||
info "Rebuilding configure script (autoconf) snapshot."
|
info "Rebuilding configure script (autoconf) snapshot."
|
||||||
autoreconf || error_cleanup "Autoconf failed."
|
autoreconf || error_cleanup "Autoconf failed."
|
||||||
|
rm -r autom4te* || error_cleanup "Failed to remove autoconf cache directory."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
replace_all doc/README
|
replace_all doc/README
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue