changes for staff client
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 Jul 2005 23:10:36 +0000 (23:10 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 Jul 2005 23:10:36 +0000 (23:10 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1518 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/Makefile
config.sh
install.sh

index b903290..2785235 100644 (file)
@@ -4,13 +4,25 @@
 
 IMAGE=$(WEBDIR)/images
 
+# A kludge until we move the generic parts of the staff client to Open-ILS
+
 all:   xul 
 
 
 install:       images-install circ-install
 
 xul:
-       make -C staff_client
+       cp -R staff_client local_staff_client
+       find local_staff_client/ -type f -exec sed -i s/evergreen/${NEW_XUL_PACKAGE_NAME}/g {} \;
+       find local_staff_client/ -type f -exec sed -i s/Evergreen/${NEW_XUL_PACKAGE_LABEL}/g {} \;
+       (cd local_staff_client/chrome/skin/evergreen; mv evergreen.css ${NEW_XUL_PACKAGE_NAME}.css)
+       (cd local_staff_client/defaults/preferences; mv evergreen.js ${NEW_XUL_PACKAGE_NAME}.js)
+       (cd local_staff_client/chrome/content; mv evergreen ${NEW_XUL_PACKAGE_NAME})
+       (cd local_staff_client/chrome/locale/en-US/; mv evergreen ${NEW_XUL_PACKAGE_NAME})
+       (cd local_staff_client/chrome/skin; mv evergreen ${NEW_XUL_PACKAGE_NAME})
+       make -C local_staff_client build
+       find local_staff_client/ -type f -exec sed -i s/gapines.org/${NEW_OPAC_URL}/g {} \;
+       make -C local_staff_client package
 
 images-install:
        @echo "Installing images to $(IMAGE)";
@@ -34,4 +46,4 @@ circ-install:
        cp circ_rules/*.rules $(CIRCRULESDIR)/
 
 clean:
-       make -C staff_client clean
+       make -C local_staff_client clean
index 5d14a01..99d59a0 100755 (executable)
--- a/config.sh
+++ b/config.sh
@@ -85,6 +85,15 @@ function buildConfig {
        prompt "Web CGI Directory [$CGIDIR] "
        read X; if [ ! -z "$X" ]; then CGIDIR="$X"; fi;
 
+       prompt "Web domain for OPAC in Staff Client [$NEW_OPAC_URL] "
+       read X; if [ ! -z "$X" ]; then NEW_OPAC_URL="$X"; fi;
+
+       prompt "Package Name for Staff Client [$NEW_XUL_PACKAGE_NAME] "
+       read X; if [ ! -z "$X" ]; then NEW_XUL_PACKAGE_NAME="$X"; fi;
+
+       prompt "Package Label for Staff Client [$NEW_XUL_PACKAGE_LABEL] "
+       read X; if [ ! -z "$X" ]; then NEW_XUL_PACKAGE_LABEL="$X"; fi;
+
        prompt "Templates directory [$TEMPLATEDIR] "
        read X; if [ ! -z "$X" ]; then TEMPLATEDIR="$X"; fi;
 
@@ -148,6 +157,10 @@ function writeConfig {
        _write "CIRCRULESDIR=\"$CIRCRULESDIR\"";
        _write "XSLDIR=\"$XSLDIR\"";
 
+       _write "NEW_OPAC_URL=\"$NEW_OPAC_URL\"";
+       _write "NEW_XUL_PACKAGE_NAME=\"$NEW_XUL_PACKAGE_NAME\"";
+       _write "NEW_XUL_PACKAGE_LABEL=\"$NEW_XUL_PACKAGE_LABEL\"";
+
        # print out the targets
        STR="TARGETS=(";
        for target in ${TARGETS[@]:0}; do
index ecfc2ed..9eb1996 100755 (executable)
@@ -130,7 +130,8 @@ function runInstall {
                        WEBDIR=$WEBDIR TEMPLATEDIR=$TEMPLATEDIR ETCDIR=$ETCDIR \
                        OPENSRFDIR=$OPENSRFDIR OPENILSDIR=$OPENILSDIR EVERGREENDIR=$EVERGREENDIR \
                        CIRCRULESDIR=$CIRCRULESDIR CGIDIR=$CGIDIR DBDRVR=$DBDRVR DBHOST=$DBHOST \
-                       DBNAME=$DBNAME DBUSER=$DBUSER DBPW=$DBPW XSLDIR=$XSLDIR";
+                       DBNAME=$DBNAME DBUSER=$DBUSER DBPW=$DBPW XSLDIR=$XSLDIR NEW_OPAC_URL=$NEW_OPAC_URL \
+                       NEW_XUL_PACKAGE_NAME=$NEW_XUL_PACKAGE_NAME NEW_XUL_PACKAGE_LABEL=$NEW_XUL_PACKAGE_LABEL";
 
 
                case "$target" in