/[pcsx2_0.9.7]/auto_build_latest_upstream.sh
ViewVC logotype

Diff of /auto_build_latest_upstream.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- auto_build_latest_upstream.sh	2010/09/10 00:02:06	116
+++ auto_build_latest_upstream.sh	2010/09/10 01:39:06	119
@@ -1,5 +1,5 @@
 #!/bin/bash
-#. ./auto_defs.sh
+. ./auto_defs.sh
 
 
 
@@ -24,11 +24,13 @@
 echo "---------------------------------------------------------------------------------------"
 echo "AUTO BUILD CONFIG:"
 echo
-echo -e "\\tMSBUILD PATH: $MSBUILD"
 echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"
 echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"
 echo -e "\\tPCSX2 VCS BUILD VERSION: $PCSX2_VERSION"
 echo
+echo -e "\\tMSBUILD PATH: $VSC_MSBUILD"
+echo -e "\\tMSBUILD OPTIONS: $VSC_MSBUILD_OPTIONS"
+echo
 echo "---------------------------------------------------------------------------------------"
 
 echo
@@ -46,16 +48,19 @@
 		fi	
 	fi
 else
-echo "PREBUILD HAS BEEN DISABLED..."	
-cd "$PCSX2_BUILD_TMP"
-find -name *.pch -exec rm -f {} \;
-echo	
+	echo "PREBUILD HAS BEEN DISABLED ... to enable do not use --no-prebuild"	
+	cd "$PCSX2_BUILD_TMP"
+	find -name *.pch -exec rm -f {} \;
+	echo	
 fi
 
+# re-generate pcsx2-version.txt
+echo "$PCSX2_VERSION" > "$PCSX2_BUILD_TMP/bin/pcsx2-version.txt"
+
 # START VISUAL STUDIO BUILD SUPPORT
 export BUILD_SUCCESS=0
 echo "PERFORMING BUILD:"
-"$MSBUILD" /nologo /t:Clean,rebuild "$VSC_PROJECT_PATH_WIN32" && BUILD_SUCCESS=0 || BUILD_SUCCESS=1
+"$VSC_MSBUILD" $VSC_MSBUILD_OPTIONS "$VSC_PROJECT_PATH_WIN32" && BUILD_SUCCESS=0 || BUILD_SUCCESS=1
 # END VISUAL STUDIO BUILD SUPPORT
 
 #echo "BUILD SUCCESS: $BUILD_SUCCESS"
@@ -66,19 +71,21 @@
 
 	# START POST BUILD
 	echo "PERFORMING POSTBUILD:"
-	cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$downstream_export_location/trunk/bin/"
+	echo -e "\\tCOPYING $PCSX2_BUILD_TMP/bin/* $downstream_export_location/trunk/bin/ ... {}"
+	cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$downstream_export_location/trunk/bin/" >/dev/null 2>/dev/null
 	echo "POSTBUILD COMPLETED..."
 	# END POST BUILD
 
 	# CLEANUP
 	echo "PERFORMING CLEANUP"
 	if [ "$DISABLE_CLEANUP" == "0" ] ; then
+		echo -e "\\tCLEANING $PCSX2_BUILD_TMP/bin/ ... {}"
 		cd "$BUILD_TMP_DIR"
-		rm -Rf "$PCSX2_BUILD_TMP"
-		rm -Rf *
+		rm -Rf "$PCSX2_BUILD_TMP" >/dev/null 2>/dev/null
+		#rm -Rf *
 		echo "CLEANUP COMPLETE..."
 	else
-	echo "CLEANUP DISABLED..."
+		echo "CLEANUP HAS BEEN DISABLED ... to enable do not use --no-cleaup"
 	fi
 
 	echo
@@ -96,12 +103,13 @@
 	echo "PERFORMING CLEANUP"
 	
 	if [ "$DISABLE_CLEANUP" == "0" ] ; then
+		echo -e "\\tCLEANING $PCSX2_BUILD_TMP/bin/ ... {}"
 		cd "$BUILD_TMP_DIR"
-		rm -Rf "$PCSX2_BUILD_TMP"
-		rm -Rf *
+		rm -Rf "$PCSX2_BUILD_TMP" >/dev/null 2>/dev/null
+		#rm -Rf *
 		echo "CLEANUP COMPLETE..."
 	else
-	echo "CLEANUP DISABLED..."
+		echo "CLEANUP HAS BEEN DISABLED ... to enable do not use --no-cleaup"
 	fi
 	echo
 	echo "BUILD FAILED..."

 

  ViewVC Help
Powered by ViewVC 1.1.22