summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-10-11 13:06:33 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-10-11 13:06:33 +0000
commitf0574de6bd9353c4a2ba356aca94bf8f6744b7a1 (patch)
tree037496891de6a39c3d0e63f042b96220549f4ebc
parente6df319952024ed3088e255d084807565235b286 (diff)
INTEGRATION: CWS cfgcws01 (1.6.12); FILE MERGED
2004/09/28 09:24:33 mmeeks 1.6.12.1: Issue number: 34710 Submitted by: mmeeks Reviewed by: mmeeks Fix undefined warning on cwscreate, add CWS_NO_UDPATE env. var to allow not running a slow cvs update on the tree during cws creation.
-rwxr-xr-xsolenv/bin/cwscreate.pl11
1 files changed, 7 insertions, 4 deletions
diff --git a/solenv/bin/cwscreate.pl b/solenv/bin/cwscreate.pl
index 878a1fe96981..0500438a32ea 100755
--- a/solenv/bin/cwscreate.pl
+++ b/solenv/bin/cwscreate.pl
@@ -5,9 +5,9 @@ eval 'exec perl -wS $0 ${1+"$@"}'
#
# $RCSfile: cwscreate.pl,v $
#
-# $Revision: 1.7 $
+# $Revision: 1.8 $
#
-# last change: $Author: rt $ $Date: 2004-10-11 13:43:54 $
+# last change: $Author: hr $ $Date: 2004-10-11 14:06:33 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -102,7 +102,7 @@ $SIG{'INT'} = 'INT_handler' if defined($log);
( my $script_name = $0 ) =~ s/^.*\b(\w+)\.pl$/$1/;
my $script_rev;
-my $id_str = ' $Revision: 1.7 $ ';
+my $id_str = ' $Revision: 1.8 $ ';
$id_str =~ /Revision:\s+(\S+)\s+\$/
? ($script_rev = $1) : ($script_rev = "-");
@@ -113,7 +113,7 @@ print "$script_name -- version: $script_rev\n";
# support for setsolar style configuration
my $b_server_wnt = 'r:/b_server/config';
my $b_server_unx = $ENV{ENV_ROOT} . '/b_server/config' if defined $ENV{ENV_ROOT};
-$b_server_unx = '/so/env/b_server/config' if ! -d $b_server_unx;
+$b_server_unx = '/so/env/b_server/config' if ! defined $b_server_unx || ! -d $b_server_unx;
#### globals #####
@@ -351,6 +351,9 @@ sub check_cvs_update {
sub update_workspace {
my $cws = shift;
+
+ defined $ENV{CWS_NO_UPDATE} && return 1;
+
my $stand_dir = $ENV{SRC_ROOT};
if (!opendir(SOURCES, $stand_dir)) {
print_error ("Environment variable SRC_ROOT points to not accesible diretory: $!", 1)