eg-updater use series ID for builds stamp
authorBill Erickson <berickxx@gmail.com>
Tue, 5 May 2015 20:27:18 +0000 (16:27 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
When building a client installer, be sure the
builds/current-client-build.zip (and related files) use the same 'build'
directory as the installer.  This ensures the build series (stamp) ID
matches the installer series (stamp) ID.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/admin-scripts/eg-updater.sh

index c3a7328..74a33fe 100755 (executable)
@@ -302,9 +302,16 @@ function deploy_web {
 #    from an Evergreen brick.
 # -----------------------------------------------------------------------
 function publish_staff_client_build {
-    cd $EVERGREEN_BASE;
-
     $OSRF mkdir -p $XUL_DIR/builds/
+
+    # build the staff client first, so we can get a build
+    # directory whose stamp ID matches the series but whose
+    # version matches the build ID.
+    if [ -n "$BUILD_XUL" ]; then
+        build_staff_client;
+    fi
+
+    cd $EVERGREEN_BASE;
     $OSRF cp -r Open-ILS/xul/staff_client/build $XUL_DIR/builds/
     cd $XUL_DIR
 
@@ -329,9 +336,6 @@ function publish_staff_client_build {
     $OSRF ln -s $CLIENT_BUILD_ID.zip current-client-build.zip
     $OSRF rm -r build # don't need the extracted version on the server
 
-    if [ -n "$BUILD_XUL" ]; then
-        build_staff_client;
-    fi
 }
 
 function build_staff_client {