692 ws needs to set CLOSED_IS_PRESENT
authorDan McDonald <danmcd@nexenta.com>
Thu, 03 Feb 2011 12:45:01 -0800
changeset 13281 6bd011e48176
parent 13280 06213a128175
child 13282 3f73413df1b2
692 ws needs to set CLOSED_IS_PRESENT Reviewed by: [email protected] Reviewed by: [email protected] Approved by: [email protected]
usr/src/tools/scripts/ws.sh
--- a/usr/src/tools/scripts/ws.sh	Wed Feb 02 14:26:35 2011 -0800
+++ b/usr/src/tools/scripts/ws.sh	Thu Feb 03 12:45:01 2011 -0800
@@ -23,7 +23,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# ident	"%Z%%M%	%I%	%E% SMI"
+# Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
 #
 #	This script sets up the environment variables for a SunOS
 #	codemgr workspace and spawns a shell with the environment
@@ -353,6 +353,14 @@
 
 osbld_flag=0
 
+if [[ ! -v CLOSED_IS_PRESENT ]]; then
+        if [[ -d $SRC/../closed ]]; then
+                export CLOSED_IS_PRESENT="yes"
+        else
+                export CLOSED_IS_PRESENT="no"
+        fi
+fi
+
 if [[ -z "$ONBLD_DIR" ]]; then
 	ONBLD_DIR=$(dirname $(whence $0))
 fi