summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authormotorola <motorola@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-16 22:46:38 +0000
committermotorola <motorola@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-16 22:46:38 +0000
commitfabbc10936188e9422570c1663b70de42770aa72 (patch)
treeac7e23042817c2b0427d6db42f70761f8164a9b6 /bin
parent831ce34b08240a5ce9f10ef689ccb46ab2cb42fa (diff)
downloadATCD-fabbc10936188e9422570c1663b70de42770aa72.tar.gz
*** empty log message ***
Diffstat (limited to 'bin')
-rwxr-xr-xbin/update-ace+tao.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/update-ace+tao.sh b/bin/update-ace+tao.sh
index eef0a5b5e55..a2739d30269 100755
--- a/bin/update-ace+tao.sh
+++ b/bin/update-ace+tao.sh
@@ -3,11 +3,12 @@
# $Id$
# Define helper function to extract version number into tag format
-d='\([0-9]*\)'; version() sed -ne "s,.*$1 version $d\.$d\.$d.*,$1-\1_\2_\3,p" \
- -e "s,.*$1 version $d\.$d.*,$1-\1_\2,p"
+d='\([0-9]*\)'
+version() { sed -n -e "s,.*$1 version $d\.$d\.$d.*,$1-\1_\2_\3,p" \
+ -e "s,.*$1 version $d\.$d.*,$1-\1_\2,p"; }
-# If ccvs found, use it instead of plain cvs since it knows about SOCKS5.
-if [ ! -z `which ccvs` ]; then cvs () ccvs $*; fi
+# Use ccvs instead of cvs since it supports SOCKS5, if that environment found.
+if [ ! -z "$SOCKS5_USER" ]; then cvs () { ccvs $*; } fi
old_ace_version=`version <VERSION ACE`
old_tao_version=`version <TAO/VERSION TAO`