From 814210e4041f86a8b6cf8c3c04360d0a3b4cb10f Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Fri, 23 May 2008 16:39:27 +0000 Subject: Update dahdi_svn_tarball to remove zaptel references and links git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4356 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- build_tools/dahdi_svn_tarball | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'build_tools/dahdi_svn_tarball') diff --git a/build_tools/dahdi_svn_tarball b/build_tools/dahdi_svn_tarball index 38a6ce8..7667951 100755 --- a/build_tools/dahdi_svn_tarball +++ b/build_tools/dahdi_svn_tarball @@ -1,13 +1,13 @@ #!/bin/sh -# upload_zaptel: upload a zaptel tarball to updates.xorcom.com +# upload_dahdi: upload a dahdi tarball to updates.xorcom.com # set -e BRANCH_NAME=1.4 REV=HEAD -ZAPTEL_BASE=http://svn.digium.com/svn/zaptel +DAHDI_BASE=http://svn.digium.com/svn/dahdi TARBALLS_DIR=$PWD me=`basename $0` @@ -17,22 +17,22 @@ say() { } usage() { - echo >&2 "$0: Generate snapshot from Zaptel SVN" + echo >&2 "$0: Generate snapshot from DAHDI SVN" echo >&2 ' ($Id$)' echo >&2 "" echo >&2 "$0 [-r REV] [-2] [-s]" echo >&2 "$0 <-h | --help>: This message" echo >&2 "" echo >&2 "Options:" - echo >&2 " -2 --zap12: Use Asterisk 1.2. Implies -u." - echo >&2 " -r --rev REV: extract xpp-zaptel from this revision ($REV)." + echo >&2 " -2 --dahdi12: Use Asterisk 1.2. Implies -u." + echo >&2 " -r --rev REV: extract xpp-dahdi from this revision ($REV)." echo >&2 " -s --show: Just show versions. Do nothing" } opt_showonly=no -options=`getopt -o 2hr:s --long zap12,help,rev:,revision:,show -- "$@"` +options=`getopt -o 2hr:s --long dahdi12,help,rev:,revision:,show -- "$@"` if [ $? != 0 ] ; then echo >&2 "Terminating..." ; exit 1 ; fi # Note the quotes around `$TEMP': they are essential! @@ -40,7 +40,7 @@ eval set -- "$options" while true ; do case "$1" in - -2|--zap12) BRANCH_NAME=1.2;; + -2|--dahdi12) BRANCH_NAME=1.2;; -s|--show) opt_showonly=yes ;; -r|--rev|--revision) REV="$2"; shift ;; -h|--help) usage; exit 0;; @@ -50,7 +50,7 @@ while true ; do done BRANCH=branches/$BRANCH_NAME -ZAPTEL_URL=$ZAPTEL_BASE/$BRANCH +DAHDI_URL=$DAHDI_BASE/$BRANCH set -e @@ -61,30 +61,30 @@ set -e # Note: this strips any minor version number. # e.g: if last releast was 1.4.5.1, this will still return 1.4.5 . Here # we rely on the fact that the revision number will be added. -zap_ver=`svn ls -r $REV $ZAPTEL_BASE/tags | grep "^$BRANCH_NAME" \ +dahdi_ver=`svn ls -r $REV $DAHDI_BASE/tags | grep "^$BRANCH_NAME" \ | sed -e "s/\($BRANCH_NAME\.[0-9]\+\)[/.-].*/\1/" \ | sort -nu -t . -k 3 | tail -n 1` -real_rev=`svn info -r $REV $ZAPTEL_URL \ +real_rev=`svn info -r $REV $DAHDI_URL \ | awk '/^Last Changed Rev: /{print $4}'` -ver_full="$zap_ver.9.svn.$real_rev" -tar_name="zaptel-$ver_full" +ver_full="$dahdi_ver.9.svn.$real_rev" +tar_name="dahdi-$ver_full" tar_ball_full="$TARBALLS_DIR/$tar_name.tar.gz" -say "Version: $ver_full (ver: $zap_ver, rev: $real_rev)" +say "Version: $ver_full (ver: $dahdi_ver, rev: $real_rev)" say "Tarball: $tar_ball_full" if [ "$opt_showonly" = 'yes' ]; then exit 0; fi -ZAP_CHECKOUT_DIR=`mktemp -d zaptel_checkout_dir_XXXXXX` +DAHDI_CHECKOUT_DIR=`mktemp -d dahdi_checkout_dir_XXXXXX` # Package a tarball from the subversion, using 'make dist': -svn export -q -r $REV $ZAPTEL_URL $ZAP_CHECKOUT_DIR/$tar_name -echo "$ver_full" >$ZAP_CHECKOUT_DIR/$tar_name/.version -tar cz -C $ZAP_CHECKOUT_DIR -f $tar_ball_full $tar_name +svn export -q -r $REV $DAHDI_URL $DAHDI_CHECKOUT_DIR/$tar_name +echo "$ver_full" >$DAHDI_CHECKOUT_DIR/$tar_name/.version +tar cz -C $DAHDI_CHECKOUT_DIR -f $tar_ball_full $tar_name -rm -rf $ZAP_CHECKOUT_DIR +rm -rf $DAHDI_CHECKOUT_DIR -- cgit v1.2.3