--- orig-1.0.9/wl_developer/bltk_wl_developer.sh 2009-04-10 09:14:20.000000000 +0200
+++ curr-1.0.9-1/wl_developer/bltk_wl_developer.sh 2009-07-17 11:03:54.857887762 +0200
@@ -38,9 +38,13 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
+[ -f "$BLTK_CONF" ] && . "$BLTK_CONF"
+
source `dirname $0`/../../bin/bltk_wl_common
[[ $? != 0 ]] && { echo "bltk tree corrupted"; exit 2; }
+export USER_DELAY_TMP=$BLTK_HOME/user_delay.tmp
+
startup()
{
trap 'cleanup 1; exit 1' 1 2 3 15
@@ -174,18 +176,18 @@
{
ST_TIME=`$BLTK_TIME_CMD`
- rm -f ./user_delay.tmp
+ rm -f $USER_DELAY_TMP
if [[ $BLTK_WL_FILE != DEBUG && $BLTK_WL_FILE != DEBUG1 ]]
then
run_cscope_vi
wl_check_error $?
else
sleep 1
- echo 1.11 >./user_delay.tmp
- wl_check_error $? "echo 0.11 >./user_delay.tmp failed"
+ echo 1.11 > $USER_DELAY_TMP
+ wl_check_error $? "echo 0.11 > $USER_DELAY_TMP failed"
fi
- CMD="cat ./user_delay.tmp"
+ CMD="cat $USER_DELAY_TMP"
DELAY_TIME=`$CMD`
wl_check_error $? "$CMD failed"
@@ -281,7 +283,15 @@
exit $1
}
-startup
-run
-cleanup 0
+if [ $WL_DEVELOPER_ENABLED = "YES" ]
+then
+ startup
+ run
+ cleanup 0
+else
+ TTY=`tty`
+ echo "WARNING!!!" > $TTY 2>&1
+ echo "The developer workload is disabled. See manual and use external package." > $TTY 2>&1
+ exit 0
+fi