adium 2680:1c28a6a970ce: Add the ability to specify a libpurple ...

commits at adium.im commits at adium.im
Thu Sep 3 20:51:40 UTC 2009


details:	http://hg.adium.im/adium/rev/1c28a6a970ce
revision:	2680:1c28a6a970ce
author:		Stephen Holt <sholt at adium.im>
date:		Thu Sep 03 16:58:29 2009 -0400

Add the ability to specify a libpurple revision or branch when running build.sh

diffs (57 lines):

diff -r 9a3aab12e03d -r 1c28a6a970ce Dependencies/build.sh
--- a/Dependencies/build.sh	Thu Sep 03 00:35:29 2009 -0400
+++ b/Dependencies/build.sh	Thu Sep 03 16:58:29 2009 -0400
@@ -59,6 +59,7 @@
 # handle commandline options
 FORCE_CONFIGURE=false
 NATIVE_BUILD=false
+MTN_UPDATE_PARAM=""
 for option in ${@:1} ; do
 	case $option in
 		--configure)
@@ -95,16 +96,26 @@
 				-I$ROOTDIR/build/include -L$ROOTDIR/build/lib"
 			warning "Building with LLVM!  This is unsupported and will probably break things!"
 			;;
+		--libpurple-rev=*)
+			MTN_REV=${option##*=}
+			MTN_UPDATE_PARAM="${MTN_UPDATE_PARAM} -r ${MTN_REV}"
+			;;
+		--libpurple-branch=*)
+			MTN_BRANCH=${option##*=}
+			MTN_UPDATE_PARAM="${MTN_UPDATE_PARAM} -b ${MTN_BRANCH}"
+			;;
 		-h|-help|--help)
 			echo 'The following options are valid:
 
-	--configure         : Force a configure during the build process
-	--disable-[arch]    : Eliminate [arch] from the build process
-	--build-native      : Build only for your current architecture
-	                      (currently breaks liboil on x86_64)
-	--enable-llvm       : Enable building with llvm-gcc.
-	                      WARNING: This is currently broken!
-	--help              : This help text
+  --configure                 : Force a configure during the build process
+  --disable-[arch]            : Eliminate [arch] from the build process
+  --build-native              : Build only for your current architecture
+                                (currently breaks liboil on x86_64)
+  --enable-llvm               : Enable building with llvm-gcc.
+                                WARNING: This is currently broken!
+  --libpurple-rev=[rev]       : Force a specific libpurple revision
+  --libpurple-branch=[branch] : Force a secific libpurple branch
+  --help                      : This help text
 	
 Note that explicitly setting any arch flags implies a forced reconfigure.'
 			exit 0
diff -r 9a3aab12e03d -r 1c28a6a970ce Dependencies/phases/build_purple.sh
--- a/Dependencies/phases/build_purple.sh	Thu Sep 03 00:35:29 2009 -0400
+++ b/Dependencies/phases/build_purple.sh	Thu Sep 03 16:58:29 2009 -0400
@@ -11,7 +11,7 @@
 		status "Pulling latest changes to libpurple"
 		cd "im.pidgin.adium"
 		$MTN pull
-		$MTN update
+		$MTN update "${MTN_UPDATE_PARAM}"
 		
 	else
 		




More information about the commits mailing list