diff --git a/tools/build_glpi.sh b/tools/build_gsit.sh similarity index 98% rename from tools/build_glpi.sh rename to tools/build_gsit.sh index 897c92eb60..1f70b216dd 100755 --- a/tools/build_glpi.sh +++ b/tools/build_gsit.sh @@ -46,6 +46,7 @@ echo "Install dependencies" $WORKING_DIR/bin/console dependencies install --composer-options="--ignore-platform-reqs --prefer-dist --no-progress" echo "Minify stylesheets and javascripts" +# need to have php < 8.0 to works php -d memory_limit=2G $WORKING_DIR/vendor/bin/robo minify --load-from $WORKING_DIR/tools echo "Compile SCSS" diff --git a/tools/make_release.sh b/tools/make_release.sh index f7b3659f47..2e2aba92dc 100755 --- a/tools/make_release.sh +++ b/tools/make_release.sh @@ -35,14 +35,14 @@ if [ ! "$#" -eq 2 ] then echo "This script builds a release archive based on Git index of given directory." echo "" - echo "Usage $0 /path/to/glpi-git-dir release-name" + echo "Usage $0 /path/to/gsit-git-dir release-name" exit fi SOURCE_DIR=$(readlink -f $1) RELEASE=$2 -WORKING_DIR=/tmp/glpi-$RELEASE -TARBALL_PATH=/tmp/glpi-$RELEASE.tgz +WORKING_DIR=/tmp/gsit-$RELEASE +TARBALL_PATH=/tmp/gsit-$RELEASE.tgz if [ ! -e $SOURCE_DIR ] || [ ! -e $SOURCE_DIR/.git ] then @@ -62,13 +62,13 @@ if [ -e $WORKING_DIR ] then rm -rf $WORKING_DIR fi -git --git-dir="$SOURCE_DIR/.git" checkout-index --all --force --prefix="$WORKING_DIR/glpi/" +git --git-dir="$SOURCE_DIR/.git" checkout-index --all --force --prefix="$WORKING_DIR/gsit/" echo "Building application" -$WORKING_DIR/glpi/tools/build_glpi.sh +$WORKING_DIR/gsit/tools/build_gsit.sh echo "Creating tarball"; -tar -c -z -f $TARBALL_PATH -C $WORKING_DIR glpi +tar -c -z -f $TARBALL_PATH -C $WORKING_DIR gsit echo "Deleting temp directory" rm -rf $WORKING_DIR