All pastes #944134 Raw Edit

Snapshot jamming

public diff v1 · immutable
·published 2008-03-15 21:48 UTC
rendered paste body
Index: configure===================================================================--- configure	(revision 1341)+++ configure	(working copy)@@ -97,6 +97,16 @@ MAKE=make fi +if [[ $1 = "--snapshot" ]]+then+    SNAPSHOT=1+else+    SNAPSHOT=0+fi++BUILD_DATE=$(date +%Y%m%d)++FULL_PATH=$(pwd) # Generate config.jam rm -f config.jam cat << EOF > config.jam@@ -109,6 +119,9 @@ DEFINES  = $DEFINES ; LINKLIBS = $LINKLIBS ; MAKE     = $MAKE ;+SNAPSHOT = $SNAPSHOT ;+BUILD_DATE = $BUILD_DATE ;+FULL_PATH = $FULL_PATH ; EOF  echoIndex: Jamrules===================================================================--- Jamrules	(revision 1341)+++ Jamrules	(working copy)@@ -12,7 +12,17 @@ }  HB_VERSION  = 0.9.2 ;-HB_BUILD    = 2008021900 ;++if $(SNAPSHOT) = 1+{+HB_VERSION = "$(HB_VERSION)s" ;+HB_BUILD = "$(BUILD_DATE)01" ;+}+else+{+HB_BUILD = "$(BUILD_DATE)00" ;+}+ DEFINES    += HB_VERSION=\\\"$(HB_VERSION)\\\" HB_BUILD=$(HB_BUILD) ; LANGUAGES   = fr de it pl ru nl es pt ja ; RM          = rm -rf ;@@ -27,7 +37,12 @@ actions OSXApp {     $(RM) $(<) macosx/build/HandBrake.app && \-      ( cd macosx && xcodebuild -target libhb -target HandBrake -target HandBrakeCLI ) && \+      ( cd macosx && \+         defaults write "$(FULL_PATH)"/macosx/HandBrake CFBundleGetInfoString '"$(HB_VERSION)"' &&\+         defaults write "$(FULL_PATH)"/macosx/HandBrake CFBundleShortVersionString '"$(HB_VERSION)"' &&\+         defaults write "$(FULL_PATH)"/macosx/HandBrake CFBundleVersion '"$(HB_BUILD)"' &&\+         plutil -convert xml1 "$(FULL_PATH)"/macosx/HandBrake.plist &&\+        xcodebuild OTHER_CFLAGS_QUOTED_1="-g -HB_BUILD="$(HB_BUILD)" -HB_VERSION=\\\"$(HB_VERSION)\\\" -DHB_BUILD="$(HB_BUILD)" -DHB_VERSION=\\\"$(HB_VERSION)\\\" -CURRENT_PROJECT_VERSION=\\\"$(HB_VERSION)\\\" " -target libhb -target HandBrake -target HandBrakeCLI ) && \       for i in $(LANGUAGES) ; do \         ( cd $(<)/Contents/Resources && \           cp -r English.lproj $i.lproj && \Index: macosx/HandBrake.plist===================================================================--- macosx/HandBrake.plist	(revision 1341)+++ macosx/HandBrake.plist	(working copy)@@ -25,7 +25,7 @@ 	<key>CFBundleSignature</key> 	<string>HB##</string> 	<key>CFBundleVersion</key>-	<string>2008021900</string>+	<string>2008031500</string> 	<key>NSHumanReadableCopyright</key> 	<string>HandBrake Devs</string> 	<key>NSMainNibFile</key>