From 4db9e0138cd4ca7533fc92ead4d11a6589d0c75f Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 20 Apr 2011 16:48:16 +0000 Subject: [PATCH] New targets for staff client Makefile rigrelease: Sets up branding/xulrunner-stub for release builds Includes a change to windowssetup.nsi to swap out image set rigbeta: Sets up branding/xulrunner-stub for beta builds Includes a change to windowssetup.nsi to swap out image set rebuild: Shortcut for re-using the same version/stamp as the last build Updated stamp target to add files for rebuild. Author: Thomas Berezansky Signed-off-by: Thomas Berezansky Signed-off-by: Jason Etheridge git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_1@20254 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/Makefile.am | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Open-ILS/xul/staff_client/Makefile.am b/Open-ILS/xul/staff_client/Makefile.am index 5b2345c9ae..396de5aa2d 100644 --- a/Open-ILS/xul/staff_client/Makefile.am +++ b/Open-ILS/xul/staff_client/Makefile.am @@ -39,6 +39,26 @@ endif install-exec-local: $(OILSSERVER_INST) +# Helper target +# For when you want to add devbuild/permachine/autoupdate to an existing stamp id +rebuild: export STAFF_CLIENT_STAMP_ID=`cat PREV_STAMP_ID` +rebuild: export STAFF_CLIENT_VERSION=`cat PREV_VERSION` +rebuild: build + +rigrelease: + @echo ' * Rigging for release branding' + @cp xulrunner-stub.release.exe xulrunner-stub.exe + @mkdir -p branding + @cp evergreen-icon.ico branding/evergreen.ico + @sed -i -e 's/^\s*;\?\s*!define UI_IMAGESET "release"/!define UI_IMAGESET "release"/' -e 's/^\s*;\?\s*!define UI_IMAGESET "beta"/;!define UI_IMAGESET "beta"/' windowssetup.nsi + +rigbeta: + @echo ' * Rigging for beta branding' + @cp xulrunner-stub.beta.exe xulrunner-stub.exe + @mkdir -p branding + @cp evergreen-icon-beta.ico branding/evergreen.ico + @sed -i -e 's/^\s*;\?\s*!define UI_IMAGESET "release"/;!define UI_IMAGESET "release"/' -e 's/^\s*;\?\s*!define UI_IMAGESET "beta"/!define UI_IMAGESET "beta"/' windowssetup.nsi + devbuild: build @echo ' * Copying in developer preferences' @cp external/developers.js build/defaults/preferences/ @@ -125,6 +145,8 @@ stamp: @if [ -n "${AUTOUPDATE_HOST}" ]; then echo "Applying automatic update host ${AUTOUPDATE_HOST}"; fi @if [ -n "${AUTOUPDATE_HOST}" ]; then sed -i -e "s|::HOSTNAME::|${AUTOUPDATE_HOST}|" -e "s|https\?://\(https\?://\)|\1|" build/defaults/preferences/autoupdate.js; fi @if [ -n "${AUTOUPDATE_HOST}" ]; then sed -i -e "s|::HOSTNAME::|${AUTOUPDATE_HOST}|" -e "s|https\?://\(https\?://\)|\1|" build/install.rdf; fi + @cp build/STAMP_ID PREV_STAMP_ID + @cp build/VERSION PREV_VERSION bell: @perl -e 'print "Ringing bell..." . chr(7) . "\n";' -- 2.11.0