gluon.mk: print source file name in GluonSrcDiet (#2424)

luasrcdiet will not print the name of its input file when an error
occurs. To facilitate debugging, echo the name before calling it, so it
is visible with V=s or BUILD_LOG=1.
This commit is contained in:
Matthias Schiffer 2022-03-24 06:48:10 +01:00 committed by GitHub
parent 7d75cfddfc
commit 9c13c4755e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,7 @@ define GluonSrcDiet
ifdef CONFIG_GLUON_MINIFY ifdef CONFIG_GLUON_MINIFY
# Use cp + rm instead of mv to preserve destination permissions # Use cp + rm instead of mv to preserve destination permissions
set -e; $(FIND) $(2) -type f | while read src; do \ set -e; $(FIND) $(2) -type f | while read src; do \
echo "Minifying $$$$src..."; \
luasrcdiet --noopt-binequiv -o "$$$$src.tmp" "$$$$src"; \ luasrcdiet --noopt-binequiv -o "$$$$src.tmp" "$$$$src"; \
cp "$$$$src.tmp" "$$$$src"; \ cp "$$$$src.tmp" "$$$$src"; \
rm "$$$$src.tmp"; \ rm "$$$$src.tmp"; \