From dfcf3800482173ce96fca953097b2fccc4722d1b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 23 Mar 2022 23:18:19 +0100 Subject: [PATCH] gluon.mk: print source file name in GluonSrcDiet 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. --- package/gluon.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/gluon.mk b/package/gluon.mk index 40f9274f..df8e2637 100644 --- a/package/gluon.mk +++ b/package/gluon.mk @@ -67,6 +67,7 @@ define GluonSrcDiet ifdef CONFIG_GLUON_MINIFY # Use cp + rm instead of mv to preserve destination permissions set -e; $(FIND) $(2) -type f | while read src; do \ + echo "Minifying $$$$src..."; \ luasrcdiet --noopt-binequiv -o "$$$$src.tmp" "$$$$src"; \ cp "$$$$src.tmp" "$$$$src"; \ rm "$$$$src.tmp"; \