From 5756a050fe015b4011181f2a3d5aed87ed65330c Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 16 Mar 2006 04:40:25 +0000 Subject: [PATCH] the date command for the build stamp was being invoked over and over for each access of the 'variable'. I encountered this before and thought I had fixed it, so I'm kludging something together this time. You can still override the build id like so: make STAFF_CLIENT_BUILD_ID='' git-svn-id: svn://svn.open-ils.org/ILS/trunk@3368 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/Makefile b/Open-ILS/xul/staff_client/Makefile index 08aad6d121..b8e34e37b0 100644 --- a/Open-ILS/xul/staff_client/Makefile +++ b/Open-ILS/xul/staff_client/Makefile @@ -1,6 +1,6 @@ # ILS/Open-ILS/xul/staff_client/Makefile -export STAFF_CLIENT_BUILD_ID = $$(/bin/date +"%Y%m%d.%H%M%S") +export STAFF_CLIENT_BUILD_ID = $$(/bin/cat build/BUILD_ID) all: build @echo @@ -47,6 +47,7 @@ build_dir: stamp: @echo + @/bin/date +"%Y%m%d.%H%M%S" > build/BUILD_ID @if [ -n "${STAFF_CLIENT_BUILD_ID}" ]; then ( echo "Stamping with Build ID: ${STAFF_CLIENT_BUILD_ID}" ; echo ${STAFF_CLIENT_BUILD_ID} > build/BUILD_ID ) ; fi @if [ -z "${STAFF_CLIENT_BUILD_ID}" ]; then ( echo "No Build ID for versioning" ; echo "none" > build/BUILD_ID ) ; fi @if [ -n "${STAFF_CLIENT_BUILD_ID}" ]; then sed -i s/^Version=.\*/Version=${STAFF_CLIENT_BUILD_ID}/ build/application.ini ; fi -- 2.43.2