[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. c74b5477c475008e0f33746872f176b1fa8e77af

Evergreen Git git at git.evergreen-ils.org
Tue Mar 19 10:16:58 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_3 has been updated
       via  c74b5477c475008e0f33746872f176b1fa8e77af (commit)
       via  61f211011b5d4b63176f114c9bf36a79d1e7e8ac (commit)
      from  43a502b0c4600471d1dabce4d27e4510a786eafd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c74b5477c475008e0f33746872f176b1fa8e77af
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Thu Aug 2 12:10:26 2012 -0400

    Update make_release script for Linux 64 building
    
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
    Signed-off-by: Ben Shum <bshum at biblio.org>
    Signed-off-by: Bill Erickson <berick at esilibrary.com>

diff --git a/build/tools/make_release b/build/tools/make_release
index c5580c1..c141ca7 100755
--- a/build/tools/make_release
+++ b/build/tools/make_release
@@ -185,14 +185,14 @@ if [ $PREV_BRANCH != "PACKAGE" ]; then
 
     echo "Finding/updating old \$HeadURL\$ entries"
     HEADURLBASE=`echo ${HEADURLBASE} | sed 's/\?/\\?/'`
-    for file in `grep -Rl --exclude=make_release.sh "$HEADURLBASE" $GIT_ABS`
+    for file in `grep -Rl --exclude=make_release "$HEADURLBASE" $GIT_ABS`
     do
         echo $file
         sed -i "s|${HEADURLBASE}[A-Za-z0-9_]*|$HEADURL|" $file
     done
 
     echo "Applying \$HeadURL\$ - $HEADURL"
-    for file in `grep -Rl --exclude=apply_version.sh '\\$HeadURL\\$' $GIT_ABS`
+    for file in `grep -Rl --exclude=make_release '\\$HeadURL\\$' $GIT_ABS`
     do
         echo $file
         sed -i "s|\\\$HeadURL\\\$|$HEADURL|" $file
@@ -289,6 +289,7 @@ XULRUNNER_VERSION=`grep '^XULRUNNER_VERSION' Makefile.am`
 XULRUNNER_VERSION=${XULRUNNER_VERSION##XULRUNNER_VERSION=}
 wget http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/$XULRUNNER_VERSION/runtimes/xulrunner-$XULRUNNER_VERSION.en-US.win32.zip
 wget http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/$XULRUNNER_VERSION/runtimes/xulrunner-$XULRUNNER_VERSION.en-US.linux-i686.tar.bz2
+wget http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/$XULRUNNER_VERSION/runtimes/xulrunner-$XULRUNNER_VERSION.en-US.linux-x86_64.tar.bz2
 
 echo "Prepping server download files"
 cd ../../../../
@@ -308,11 +309,15 @@ make rigrelease
 make STAFF_CLIENT_STAMP_ID=rel_$UNDER_VERSION build
 make win-client
 mv evergreen_staff_client_setup.exe ../../../../evergreen-setup-$VERSION.exe
-make linux-client
-mv evergreen_staff_client.tar.bz2 ../../../../evergreen-client-$VERSION.tar.bz2
+make linux32-client
+mv evergreen_staff_client_i686.tar.bz2 ../../../../evergreen-client-${VERSION}_i686.tar.bz2
+make linux64-client
+mv evergreen_staff_client_x86_64.tar.bz2 ../../../../evergreen-client-${VERSION}_x86_64.tar.bz2
 cd ../../../../
 md5sum evergreen-setup-$VERSION.exe > evergreen-setup-$VERSION.exe.md5
-md5sum evergreen-client-$VERSION.tar.bz2 > evergreen-client-$VERSION.tar.bz2.md5
+md5sum evergreen-client-${VERSION}_i686.tar.bz2 > evergreen-client-${VERSION}_i686.tar.bz2.md5
+md5sum evergreen-client-${VERSION}_x86_64.tar.bz2 > evergreen-client-${VERSION}_x86_64.tar.bz2.md5
+
 
 echo "Removing build directory"
 rm -rf Evergreen-ILS-$VERSION/

commit 61f211011b5d4b63176f114c9bf36a79d1e7e8ac
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Thu Aug 2 10:20:54 2012 -0400

    Add 64 bit Linux Client building
    
    Also re-labels most of the 32 bit client as such. The update channel was
    left as just "lin" instead of "lin32" for compatibility reasons.
    
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
    Signed-off-by: Ben Shum <bshum at biblio.org>
    Signed-off-by: Bill Erickson <berick at esilibrary.com>

diff --git a/Open-ILS/updates/manualupdate.html b/Open-ILS/updates/manualupdate.html
index 09de1b6..0330a64 100755
--- a/Open-ILS/updates/manualupdate.html
+++ b/Open-ILS/updates/manualupdate.html
@@ -24,15 +24,26 @@ if [ -f ../patch/win/VERSION ]; then
 	fi
 fi
 if [ -f ../patch/lin/VERSION ]; then
-	echo "<h2>Linux</h2>"
+	echo "<h2>Linux (32 bit)</h2>"
 	VERSION=$(cat ../patch/lin/VERSION)
-	if [ -f clients/${VERSION}.tar.bz2 ]; then
-		echo "<p>A bundle for Linux is available.</p>"
-		echo "<p><a href=\"clients/${VERSION}.tar.bz2\">Click here to download the bundle (version $VERSION)</a></p>"
+	if [ -f clients/${VERSION}_i686.tar.bz2 ]; then
+		echo "<p>A 32 bit bundle for Linux is available.</p>"
+		echo "<p><a href=\"clients/${VERSION}_i686.tar.bz2\">Click here to download the bundle (version $VERSION)</a></p>"
 	else
-		echo "<p>No bundle is currently available for Linux.</p>"
+		echo "<p>No 32 bit bundle is currently available for Linux.</p>"
 	fi
 fi
+if [ -f ../patch/lin64/VERSION ]; then
+	echo "<h2>Linux (64 bit)</h2>"
+	VERSION=$(cat ../patch/lin64/VERSION)
+	if [ -f clients/${VERSION}_x86_64.tar.bz2 ]; then
+		echo "<p>A 64 bit bundle for Linux is available.</p>"
+		echo "<p><a href=\"clients/${VERSION}_x86_64.tar.bz2\">Click here to download the bundle (version $VERSION)</a></p>"
+	else
+		echo "<p>No 64 bit bundle is currently available for Linux.</p>"
+	fi
+fi
+
 if [ -f ../patch/VERSION ]; then
 	echo "<h2>XULRunner App Bundle</h2>"
 	VERSION=$(cat ../patch/VERSION)
diff --git a/Open-ILS/xul/staff_client/Makefile.am b/Open-ILS/xul/staff_client/Makefile.am
index 46ad9cc..a27b5cb 100644
--- a/Open-ILS/xul/staff_client/Makefile.am
+++ b/Open-ILS/xul/staff_client/Makefile.am
@@ -13,7 +13,8 @@ export CLOSURE_COMPILER_JAR = ~/closure-compiler/compiler.jar
 # XULRunner is our base.
 XULRUNNER_VERSION=14.0.1
 XULRUNNER_WINFILE=xulrunner-$(XULRUNNER_VERSION).en-US.win32.zip
-XULRUNNER_LINUXFILE=xulrunner-$(XULRUNNER_VERSION).en-US.linux-i686.tar.bz2
+XULRUNNER_LINUX32FILE=xulrunner-$(XULRUNNER_VERSION).en-US.linux-i686.tar.bz2
+XULRUNNER_LINUX64FILE=xulrunner-$(XULRUNNER_VERSION).en-US.linux-x86_64.tar.bz2
 XULRUNNER_URL=ftp://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/$(XULRUNNER_VERSION)/runtimes/
 XULRUNNER_MAJOR_VERSION=$$(echo ${XULRUNNER_VERSION} | cut -d. -f1)
 
@@ -215,7 +216,8 @@ compress-javascript: build
 
 clients:
 	@make win-client
-	@make linux-client
+	@make linux32-client
+	@make linux64-client
 	@make generic-client
 
 # By doing this we don't change the original build in the build folder
@@ -337,15 +339,27 @@ win-xulrunner: unzip_check branding_check client_app
 	@if [ ${XULRUNNER_MAJOR_VERSION} -ge 4 -a -f client/xulrunner/mozcrt19.dll ]; then cp client/xulrunner/mozcrt19.dll client/; fi # XULRunner 4+ need this, if the file exists
 	@if [ ${XULRUNNER_MAJOR_VERSION} -ge 9 -a -f client/xulrunner/mozutils.dll ]; then cp client/xulrunner/mozutils.dll client/; fi # XULRunner 9+ need this, if the file exists
 
-linux-xulrunner: client_app
-	@echo 'Preparing Linux xulrunner'
-	@if [ ! -f ${XULRUNNER_LINUXFILE} ]; then wget ${XULRUNNER_URL}${XULRUNNER_LINUXFILE}; fi
-	@cd client; tar xjf ../${XULRUNNER_LINUXFILE}; cd ..
+linux32-xulrunner: client_app
+	@echo 'Preparing Linux (32 bit) xulrunner'
+	@if [ ! -f ${XULRUNNER_LINUX32FILE} ]; then wget ${XULRUNNER_URL}${XULRUNNER_LINUX32FILE}; fi
+	@cd client; tar xjf ../${XULRUNNER_LINUX32FILE}; cd ..
 	@if [ -f client/defaults/preferences/autoupdate.js ]; then echo 'pref("app.update.channel","lin");' >> client/defaults/preferences/autochannel.js; fi;
 	@if [ -d branding_lin ]; then cp -fR branding_lin/* client/; fi
 	@echo 'Preparing stub'
 	@mv client/xulrunner/xulrunner-stub client/evergreen
 
+linux64-xulrunner: client_app
+	@echo 'Preparing Linux (64 bit) xulrunner'
+	@if [ ! -f ${XULRUNNER_LINUX64FILE} ]; then wget ${XULRUNNER_URL}${XULRUNNER_LINUX64FILE}; fi
+	@cd client; tar xjf ../${XULRUNNER_LINUX64FILE}; cd ..
+	@if [ -f client/defaults/preferences/autoupdate.js ]; then echo 'pref("app.update.channel","lin64");' >> client/defaults/preferences/autochannel.js; fi;
+# Note: We assume that we want 32 bit branding files, but provide a way to override for 64 bit
+	@if [ -d branding_lin ]; then cp -fR branding_lin/* client/; fi
+	@if [ -d branding_lin64 ]; then cp -fR branding_lin64/* client/; fi
+	@echo 'Preparing stub'
+	@mv client/xulrunner/xulrunner-stub client/evergreen
+
+
 # Build a windows installer.
 
 win-client: nsis_check win-xulrunner
@@ -356,15 +370,21 @@ win-client: nsis_check win-xulrunner
 
 # For linux, just build a tar.bz2 archive
 
-linux-client: linux-xulrunner
-	@echo 'Packing as evergreen_staff_client.tar.bz2'
-	@rm -f evergreen_staff_client.tar.bz2
-	@cd client; tar cjf ../evergreen_staff_client.tar.bz2 *; cd ..
+linux32-client: linux32-xulrunner
+	@echo 'Packing as evergreen_staff_client_i686.tar.bz2'
+	@rm -f evergreen_staff_client_i686.tar.bz2
+	@cd client; tar cjf ../evergreen_staff_client_i686.tar.bz2 *; cd ..
+	@echo 'Done'
+
+linux64-client: linux64-xulrunner
+	@echo 'Packing as evergreen_staff_client_x86_64.tar.bz2'
+	@rm -f evergreen_staff_client_x86_64.tar.bz2
+	@cd client; tar cjf ../evergreen_staff_client_x86_64.tar.bz2 *; cd ..
 	@echo 'Done'
 
 # For running the updates script with the correct updates directory, optionally building clients as well
 
-updates updates-client win-updates win-updates-client linux-updates linux-updates-client generic-updates generic-updates-client extension-updates:
+updates updates-client win-updates win-updates-client linux32-updates linux32-updates-client linux64-updates linux64-updates-client generic-updates generic-updates-client extension-updates:
 	@if [ ! -f build/BUILD_ID ]; then echo 'ERROR! Current build not stamped!'; exit 1; fi
 	@if [ ! -x external/make_updates.sh ]; then chmod u+x external/make_updates.sh; fi
 	@if [ ! -x external/make_updates.sh ]; then echo 'ERROR! external/make_updates.sh is not executable!'; exit 1; fi
diff --git a/Open-ILS/xul/staff_client/external/make_updates.sh b/Open-ILS/xul/staff_client/external/make_updates.sh
index 7ba79d2..d708e91 100755
--- a/Open-ILS/xul/staff_client/external/make_updates.sh
+++ b/Open-ILS/xul/staff_client/external/make_updates.sh
@@ -45,7 +45,8 @@ BZIP2=${BZIP2:-bzip2}
 
 GEN_UPDATES=0
 WIN_UPDATES=0
-LINUX_UPDATES=0
+LINUX32_UPDATES=0
+LINUX64_UPDATES=0
 EXT_UPDATES=0
 CLIENTS=0
 case "$2" in
@@ -57,9 +58,13 @@ case "$2" in
 	echo "Building Windows Updates only"
 	WIN_UPDATES=1
 	;;
-	linux-updates*)
-	echo "Building Linux Updates only"
-	LINUX_UPDATES=1
+	linux32-updates*)
+	echo "Building Linux (32 bit) Updates only"
+	LINUX32_UPDATES=1
+	;;
+	linux64-updates*)
+	echo "Building Linux (64 bit) Updates only"
+	LINUX32_UPDATES=1
 	;;
 	extension-updates*)
 	echo "Building Extension Updates only"
@@ -69,7 +74,8 @@ case "$2" in
 	echo "Building All Updates"
 	GEN_UPDATES=1
 	WIN_UPDATES=1
-	LINUX_UPDATES=1
+	LINUX32_UPDATES=1
+	LINUX64_UPDATES=1
 	EXT_UPDATES=1
 	;;
 esac
@@ -296,18 +302,36 @@ if [ $WIN_UPDATES -eq 1 ]; then
 	cleanup_files
 fi
 
-# Linux Updates - Linux XULRunner, update channel of "lin'
-if [ $LINUX_UPDATES -eq 1 ]; then
+# Linux 32 bit Updates - Linux XULRunner, update channel of "lin"
+if [ $LINUX32_UPDATES -eq 1 ]; then
 	PATCHPATH="$prefix/patch/lin"
 	PUBPATH="$prefix/pub/lin"
 	ARCHIVEPATH="$prefix/archives/lin"
 	if [ $CLIENTS -eq 1 ]; then
-		make linux-client
+		make linux32-client
+		mkdir -p "$prefix/pub/clients/"
+		find "$prefix/pub/clients/" -name '*_i686.tar.bz2' -delete
+		mv evergreen_staff_client_i686.tar.bz2 "$prefix/pub/clients/${VERSION}_i686.tar.bz2"
+	else
+		make linux32-xulrunner
+	fi
+	make_full_update
+	make_partial_updates
+	cleanup_files
+fi
+
+# Linux 64 bit Updates - Linux XULRunner, update channel of "lin64"
+if [ $LINUX64_UPDATES -eq 1 ]; then
+	PATCHPATH="$prefix/patch/lin64"
+	PUBPATH="$prefix/pub/lin64"
+	ARCHIVEPATH="$prefix/archives/lin64"
+	if [ $CLIENTS -eq 1 ]; then
+		make linux64-client
 		mkdir -p "$prefix/pub/clients/"
-		find "$prefix/pub/clients/" -name '*.tar.bz2' -delete
-		mv evergreen_staff_client.tar.bz2 "$prefix/pub/clients/${VERSION}.tar.bz2"
+		find "$prefix/pub/clients/" -name '*_x86_64.tar.bz2' -delete
+		mv evergreen_staff_client_x86_64.tar.bz2 "$prefix/pub/clients/${VERSION}_x86_64.tar.bz2"
 	else
-		make linux-xulrunner
+		make linux64-xulrunner
 	fi
 	make_full_update
 	make_partial_updates

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/updates/manualupdate.html                 |   21 +++++++--
 Open-ILS/xul/staff_client/Makefile.am              |   42 +++++++++++++-----
 Open-ILS/xul/staff_client/external/make_updates.sh |   46 +++++++++++++++-----
 build/tools/make_release                           |   15 ++++--
 4 files changed, 92 insertions(+), 32 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list