]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
update bind.sh for robie auto branch snap builds.
authorDavid Hankins <dhankins@isc.org>
Wed, 2 Jun 2010 22:19:43 +0000 (22:19 +0000)
committerDavid Hankins <dhankins@isc.org>
Wed, 2 Jun 2010 22:19:43 +0000 (22:19 +0000)
util/bind.sh

index de737dde903574cc3ea87661f6d0134de9dda19f..ef9ad6b1df21ca70ef0fb99371e66a5300310093 100644 (file)
@@ -14,7 +14,7 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: bind.sh,v 1.6.2.5 2010/06/02 17:01:43 dhankins Exp $
+# $Id: bind.sh,v 1.6.2.6 2010/06/02 22:19:43 dhankins Exp $
 
 # Get the bind distribution for the libraries
 # This script is used to build the DHCP distribution and shouldn't be shipped
@@ -29,14 +29,26 @@ binddir=$topdir/bind
 case $# in 
     1)
        case "$1" in 
-       4.2.0b[12]|4.2.0) BINDTAG=v9_7_1rc1 ;;
+       ###
+       ### Robie calls this script with the building branch name so we can
+       ### build with BIND9 HEAD for the relevant branch we would release
+       ### with.
+       ###
+       v4_2) SNAP=snapshot BINDTAG=v9_7 ;;
+       HEAD|v[0-9]_[0-9].*) SNAP=snapshot BINDTAG=HEAD ;;
+       ###
+       ### For ease of use, this records the sticky tag of versions
+       ### released with each point release.
+       ###
+       4.2.0b2|4.2.0) BINDTAG=v9_7_1rc1 ;;
+       4.2.0b1) BINDTAG=v9_7_0_P1 ;;
        4.2.0a2|4.2.0a1) BINDTAG=v9_7_0b3 ;;
        *) echo "bind.sh: unsupported version: $1" >&2
           exit 1
           ;;
        esac
        ;;
-    *) echo "usage: sh bind.sh <version>" >&2
+    *) echo "usage: sh bind.sh [<branch>|<version>]" >&2
        exit 1
        ;;
 esac
@@ -55,7 +67,7 @@ cvs checkout -p -r $BINDTAG bind9/util/kit.sh > kit.sh
 # Create the bind tarball, which has the side effect of
 # setting up the bind directory we will use for building
 # the export libraries
-sh kit.sh $BINDTAG $binddir
+sh kit.sh $SNAP $BINDTAG $binddir
 
 . ./version.tmp