Blame SOURCES/bltk-1.1.0-cond_install.patch

983249
diff -up bltk-1.0.9/wl_developer/bltk_wl_developer_install.sh.cond_install bltk-1.0.9/wl_developer/bltk_wl_developer_install.sh
983249
--- bltk-1.0.9/wl_developer/bltk_wl_developer_install.sh.cond_install	2009-07-29 11:38:48.000000000 +0200
983249
+++ bltk-1.0.9/wl_developer/bltk_wl_developer_install.sh	2009-07-29 14:54:40.878602487 +0200
983249
@@ -38,6 +38,8 @@
983249
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
983249
 #
983249
 
983249
+[ -f "$BLTK_CONF" ] && . "$BLTK_CONF"
983249
+
983249
 source `dirname $0`/../../bin/bltk_wl_common
983249
 [[ $? != 0 ]] && { echo "bltk tree corrupted"; exit 2; }
983249
 
983249
@@ -139,9 +141,14 @@ else
983249
 	exit 1
983249
 fi
983249
 
983249
-{
983249
-startup
983249
-$work
983249
-cleanup 0
983249
-}  2>&1 | tee -i $work.log
983249
+if [[ "$WL_DEVELOPER_ENABLED" = "YES" && "$WL_DEVELOPER_EXTERN" = "YES" ]]
983249
+then
983249
+	{
983249
+	startup
983249
+	$work
983249
+	cleanup 0
983249
+	}  2>&1 | tee -i $work.log
983249
+else
983249
+	exit 0
983249
+fi
983249
 
983249
diff -up bltk-1.0.9/wl_office/bltk_wl_office_install.sh.cond_install bltk-1.0.9/wl_office/bltk_wl_office_install.sh
983249
--- bltk-1.0.9/wl_office/bltk_wl_office_install.sh.cond_install	2009-07-29 11:38:48.000000000 +0200
983249
+++ bltk-1.0.9/wl_office/bltk_wl_office_install.sh	2009-07-29 15:00:59.406496688 +0200
983249
@@ -38,6 +38,8 @@
983249
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
983249
 #
983249
 
983249
+[ -f "$BLTK_CONF" ] && . "$BLTK_CONF"
983249
+
983249
 source `dirname $0`/../../bin/bltk_wl_common
983249
 [[ $? != 0 ]] && { echo "bltk tree corrupted"; exit 2; }
983249
 
983249
@@ -80,7 +81,6 @@ cleanup()
983249
 
983249
 install_ooo()
983249
 {
983249
-
983249
 	wl_remove_file ${HOME}/.sversionrc
983249
 	wl_check_error $?
983249
 
983249
@@ -188,23 +188,27 @@
983249
 
983249
 }
983249
 
983249
-if [[ $# = 0 || $1 = i || $1 = install ]]
983249
+if [[ "$WL_OFFICE_ENABLED" = "YES" && "$WL_OFFICE_EXTERN" = "YES" ]]
983249
 then
983249
-	work=install
983249
-elif [[ $1 = install-loc ]]
983249
-then
983249
-	work=install-loc
983249
-elif [[ $1 = u || $1 = uninstall ]]
983249
-then
983249
-	work=uninstall
983249
+	if [[ $# = 0 || $1 = i || $1 = install ]]
983249
+	then
983249
+		work=install
983249
+	elif [[ $1 = install-loc ]]
983249
+	then
983249
+		work=install-loc
983249
+	elif [[ $1 = u || $1 = uninstall ]]
983249
+	then
983249
+		work=uninstall
983249
+	else
983249
+		echo "Invalid parameter"
983249
+		exit 1
983249
+	fi
983249
+
983249
+	{
983249
+		startup
983249
+		$work
983249
+		cleanup 0
983249
+	}  2>&1 | tee -i $work.log
983249
 else
983249
-	echo "Invalid parameter"
983249
-	exit 1
983249
+	exit 0
983249
 fi
983249
-
983249
-{
983249
-startup
983249
-$work
983249
-cleanup 0
983249
-}  2>&1 | tee -i $work.log
983249
-
983249
--- bltk-1.0.9/wl_player/bltk_wl_player_install.sh.cond_install	2009-07-29 11:38:48.000000000 +0200
983249
+++ bltk-1.0.9/wl_player/bltk_wl_player_install.sh	2009-07-29 15:06:43.249585854 +0200
983249
@@ -41,6 +41,8 @@
983249
 
983249
 PLAYER_INSTALL_FLAGS=" --disable-ivtv"
983249
 
983249
+[ -f "$BLTK_CONF" ] && . "$BLTK_CONF"
983249
+
983249
 source `dirname $0`/../../bin/bltk_wl_common
983249
 [[ $? != 0 ]] && { echo "bltk tree corrupted"; exit 2; }
983249
 
983249
@@ -286,17 +288,21 @@ else
983249
 	exit 1
983249
 fi
983249
 
983249
+if [[ "$WL_PLAYER_ENABLED" = "YES" && "$WL_PLAYER_EXTERN" = "YES" ]]
983249
+then
983249
 {
983249
-
983249
 #If there is a ENV variable named CFLAGS, the CFLAGS value in wl_player/Makefile
983249
 #will be set to this ENV variable. Since the MPlayer will inherit the ENV CFLAGS
983249
 #value, the compiling will failed for "-pedantic -std=c99" in CFLAGS. So we need
983249
 #to unset the variable here.
983249
 
983249
-CFLAGS=
983249
-LDFLAGS=
983249
-startup
983249
-$work
983249
-cleanup 0
983249
-}  2>&1 | tee -i $work.log
983249
-
983249
+	CFLAGS=
983249
+	LDFLAGS=
983249
+	startup
983249
+	$work
983249
+	cleanup 0
983249
+	}  2>&1 | tee -i $work.log
983249
+}
983249
+else
983249
+	exit 0
983249
+fi