# 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
$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 {