export WEBDIR=@localstatedir@/web
export STAFF_CLIENT_BUILD_ID = $$(/bin/cat build/BUILD_ID)
export STAFF_CLIENT_VERSION = $$(/bin/cat build/VERSION)
-export STAFF_CLIENT_STAMP_ID = $$(/bin/cat build/STAMP_ID)
+export STAFF_CLIENT_STAMP_ID = legacy
# from http://closure-compiler.googlecode.com/files/compiler-latest.zip FIXME: Autotools this?
export CLOSURE_COMPILER_JAR = ~/closure-compiler/compiler.jar
@echo "Copying xul into $(DESTDIR)$(WEBDIR)/xul/$(STAFF_CLIENT_STAMP_ID)"
mkdir -p "$(DESTDIR)$(WEBDIR)/xul/$(STAFF_CLIENT_STAMP_ID)"
cp -R @top_srcdir@/Open-ILS/xul/staff_client/build/server "$(DESTDIR)${WEBDIR}/xul/${STAFF_CLIENT_STAMP_ID}/"
+ @if [ "${STAFF_CLIENT_STAMP_ID}" == "legacy" ]; then \
+ echo "Installing the legacy parts of the XUL staff client"; \
+ if [ -L "$(DESTDIR)${WEBDIR}/xul/server" ]; then \
+ echo "Updating XUL server symlink to point to legacy code"; \
+ rm $(DESTDIR)${WEBDIR}/xul/server; \
+ ( cd "$(DESTDIR)${WEBDIR}/xul"; ln -s legacy/server server; ); \
+ else \
+ if [ ! -f "$(DESTDIR)${WEBDIR}/xul/server" ]; then \
+ echo "Creating XUL server symlink to point to legacy code"; \
+ ( cd "$(DESTDIR)${WEBDIR}/xul"; ln -s legacy/server server; ); \
+ else \
+ if [ -d "$(DESTDIR)${WEBDIR}/xul/server" ]; then \
+ echo "WARNING: $(DESTDIR)${WEBDIR}/xul/server is a directory; "; \
+ echo "Not overwriting it, but you should probably do the following: "; \
+ echo "1. Remove or move it, and "; \
+ echo "2. Create a symlink from $(DESTDIR)${WEBDIR}/xul/legacy/server to $(DESTDIR)${WEBDIR}/xul/server "; \
+ fi; \
+ fi; \
+ fi; \
+ fi; # manage the server symlink if installing the 'legacy' staff client
compress-javascript: build
@echo "Size of build/ before compression = " `du -sh build/`
command as the *root* Linux account to install Evergreen, build the server
portion of the staff client, and copy example configuration files to
`/openils/conf`.
- Change the value of the `STAFF_CLIENT_STAMP_ID` variable to match the version
- of the staff client that you will use to connect to the Evergreen server.
+
[source, bash]
------------------------------------------------------------------------------
-make STAFF_CLIENT_STAMP_ID=rel_name install
-------------------------------------------------------------------------------
-+
-2. The server portion of the staff client expects `http://hostname/xul/server`
- to resolve. Issue the following commands as the *root* Linux account to
- create a symbolic link pointing to the `server` subdirectory of the server
- portion of the staff client that we just built using the staff client ID
- 'rel_name':
-+
-[source, bash]
-------------------------------------------------------------------------------
-cd /openils/var/web/xul
-ln -sf rel_name/server server
+make install
------------------------------------------------------------------------------
Change ownership of the Evergreen files
[source, bash]
------------------------------------------------------------
cd /home/opensrf/Evergreen-ILS-2.12.0
+make install
+------------------------------------------------------------
++
+
+**Note** that this version of Evergreen does not use the legacy XUL staff
+client by default, but if you wish to use a versioned XUL staff client, you
+can supply `STAFF_CLIENT_STAMP` during the `make install` step like this:
++
+[source, bash]
+------------------------------------------------------------
+cd /home/opensrf/Evergreen-ILS-2.12.0
make STAFF_CLIENT_STAMP_ID=rel_2_12_rc install
------------------------------------------------------------
+
chown -R opensrf:opensrf /openils
------------------------------------------------------------
+
-. As the *opensrf* user, update the server symlink in /openils/var/web/xul/:
+. (Optional, only if you are using the legacy staff client)
+ As the *opensrf* user, update the server symlink in /openils/var/web/xul/:
+
[source, bash]
-----------------------------------------------------------