1 # ILS/Open-ILS/xul/staff_client/Makefile
3 export STAFF_CLIENT_BUILD_ID = `/bin/date +"%Y%m%d.%H%M%S"`
9 build: build_dir generated open-ils custom stamp
12 @echo To test the staff client:
14 @echo " xulrunner application.ini"
18 @echo '********************************************************* Creating and populating build/ '
23 cp -R components build/
24 cp application.ini build/
25 cp -R build/chrome/content/util/ build/server/
26 cp build/chrome/content/main/constants.js build/server/main/constants.js
27 cp build/chrome/content/OpenILS/data.js build/server/OpenILS/data.js
28 external/prune_dirs.sh build/
32 @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
33 @if [ -z "${STAFF_CLIENT_BUILD_ID}" ]; then ( echo "No Build ID for versioning"; echo "none" > build/BUILD_ID ) ; fi
34 @if [ -n "${STAFF_CLIENT_BUILD_ID}" ]; then sed -i s/^Version=.\*/Version=${STAFF_CLIENT_BUILD_ID}/ build/application.ini ; fi
35 @if [ -n "${STAFF_CLIENT_BUILD_ID}" ]; then sed -i s/^BuildID=.\*/BuildID=${STAFF_CLIENT_BUILD_ID}/ build/application.ini ; fi
36 @if [ -n "${STAFF_CLIENT_BUILD_ID}" ]; then find build/ -name '*.xul' -exec sed -i s/xul\\\/server/xul\\\/${STAFF_CLIENT_BUILD_ID}\\\/server/g {} \; ; fi
37 @if [ -n "${STAFF_CLIENT_BUILD_ID}" ]; then find build/ -name '*.js' -exec sed -i s/xul\\\/server/xul\\\/${STAFF_CLIENT_BUILD_ID}\\\/server/g {} \; ; fi
41 @echo '********************************************************* Grabbing lang.dtd from the OPAC code '
42 cp ../../../Open-ILS/web/opac/locale/en-US/lang.dtd build/chrome/locale/en-US/
43 external/dtd2js.pl build/chrome/locale/en-US/lang.dtd > build/chrome/content/main/lang.js
47 @echo '********************************************************* Grabbing more OPAC code and legacy code '
48 cp ../../../OpenSRF/src/javascript/*.js build/chrome/content/OpenSRF/
49 cp ../../../Open-ILS/web/opac/common/js/*.js build/chrome/content/OpenILS/util/
50 cp ../../../Evergreen/staff_client/chrome/content/evergreen/cat/marc* build/chrome/content/legacy/
51 cp ../../../Evergreen/staff_client/chrome/content/evergreen/cat/browse* build/chrome/content/legacy/
52 cp ../../../Evergreen/staff_client/chrome/locale/en-US/evergreen/cat.dtd build/chrome/locale/en-US/
53 find build/chrome/content/legacy/ -type f -name '*.*' -exec sed -i s/evergreen/open_ils_staff_client/g {} \;
58 @echo '********************************************************* Placeholder for debugging tweaks '
59 #(cd chrome/content/OpenILS/util; cp RemoteRequest.js~ RemoteRequest.js)
63 @echo '********************************************************* Removing build/ '