Import Upstream version 4.12.4

This commit is contained in:
geos_one
2025-08-12 22:28:56 +02:00
parent 03a8170b15
commit 9181ee2487
1629 changed files with 874094 additions and 554378 deletions

View File

@@ -29,14 +29,14 @@ RDIR=$DIR/../release
usage() {
cat <<-__EOF__;
NAME
compile.sh - Compiles layer file of Dojo build using Python rjsmin.
compile.sh - Compiles layer file of Dojo build using a minimizer.
Deletes all other files.
SYNOPSIS
path/to/compile.sh [--help] --release RELEASE --layer NAME/NAME
DESCRIPTION
Compiles layer file of Dojo build output using Python rjsmin.
Compiles layer file of Dojo build output using a minimizer.
Deletes all other files.
OPTIONS
@@ -111,7 +111,9 @@ fi
# compile using python rjsmin on most platforms and uglify-js on RHEL 8
echo "Minimizing: $RDIR/$RELEASE/$LAYER.js"
echo "Target file: $OUTPUT_FILE"
if [ $ID = "rhel" ]; then
if [[ ("$ID" == "rhel" || "$ID_LIKE" =~ "rhel")
&& ("$VERSION_ID" =~ "8." || "$VERSION_ID" == "8") ]];
then
echo "Minifier: uglifyjs"
uglifyjs < $RDIR/$RELEASE/$LAYER.js > $OUTPUT_FILE
else