summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2012-04-11 01:51:19 +0000
committerShawn Routhier <sar@isc.org>2012-04-11 01:51:19 +0000
commit72d0786a9c67857cd43a4e6c18b921503c28ab82 (patch)
treeea29039045f55f16bcc2efbc5942fd9bd5acf53d /util
parentbaa311e0a662fc1c1ebf836afbc581cccfda48c8 (diff)
downloadisc-dhcp-72d0786a9c67857cd43a4e6c18b921503c28ab82.tar.gz
Add --remote option for use with Robie
Diffstat (limited to 'util')
-rw-r--r--util/bind.sh20
1 files changed, 15 insertions, 5 deletions
diff --git a/util/bind.sh b/util/bind.sh
index b1f4bab8..de8235d4 100644
--- a/util/bind.sh
+++ b/util/bind.sh
@@ -14,17 +14,27 @@
# 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.23 2012/04/10 23:51:49 sar Exp $
+# $Id: bind.sh,v 1.6.2.24 2012/04/11 01:51:19 sar Exp $
# Get the bind distribution for the libraries
# This script is used to build the DHCP distribution and shouldn't be shipped
#
-# Usage: sh bind.sh <DHCP version>
+# Usage: sh bind.sh [--remote=<path>] <DHCP version>
+#
+# Normally remote will only be used by Robie
#
#
topdir=`pwd`
binddir=$topdir/bind
+remote=--remote=cvs.isc.org:/proj/git/prod/bind9.git
+
+case "${1:-}" in
+--remote=*)
+ remote="${1}";
+ shift
+ ;;
+esac
case $# in
1)
@@ -61,7 +71,7 @@ case $# in
;;
esac
;;
- *) echo "usage: sh bind.sh [<branch>|<version>]" >&2
+ *) echo "usage: sh bind.sh [--remote=<path>] [<branch>|<version>]" >&2
exit 1
;;
esac
@@ -75,11 +85,11 @@ cp util/Makefile.bind bind/Makefile
cd $binddir
# Get the bind version file and move it to version.tmp
-git archive --format tar --remote=cvs.isc.org:/proj/git/prod/bind9.git $BINDTAG version | tar xf -
+git archive --format tar $remote $BINDTAG version | tar xf -
mv version version.tmp
# Get the bind release kit shell script
-git archive --format tar --remote=cvs.isc.org:/proj/git/prod/bind9.git master:util/ | tar xf - kit.sh
+git archive --format tar $remote master:util/ | tar xf - kit.sh
# Create the bind tarball, which has the side effect of
# setting up the bind directory we will use for building