[PATCH] Amend release script to include custom client resources

Wald Commits scm-commit at wald.intevation.org
Thu Apr 28 18:02:35 CEST 2022


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1651161741 -7200
#      Thu Apr 28 18:02:21 2022 +0200
# Branch 3.2.x
# Node ID ca1319d5816d91624d8889ecaff10c98eb252ba0
# Parent  a99f07471004e77160c4ec63666c4bdd3244559a
Amend release script to include custom client resources

diff -r a99f07471004 -r ca1319d5816d contrib/make_flys_release/make_release.sh
--- a/contrib/make_flys_release/make_release.sh	Thu Apr 28 17:30:21 2022 +0200
+++ b/contrib/make_flys_release/make_release.sh	Thu Apr 28 18:02:21 2022 +0200
@@ -236,6 +236,15 @@
     done
 fi
 
+if [ -d "$CLIENT_RESOURCES" ]; then
+    echo "INFO: copy custom client resources to target destination"
+    CLIENT_RESOURCES_DIR=$FLYS_SOURCE_DIR/river/gwt-client/src/main/resources/
+    cp -R $CLIENT_RESOURCES/* $CLIENT_RESOURCES_DIR
+    for file in `find $CLIENT_RESOURCES_DIR/ -type f`; do
+        sed -i -e "s at D4E_VERSION@${VERSION}@g" $file
+    done
+fi
+
 if [ -f "$CLIENT_CONF" ]; then
     echo "INFO: copy custom java script client configuration to target destination"
     cp "$CLIENT_CONF" \


More information about the Dive4Elements-commits mailing list