Skip to content

Commit

Permalink
gluon.mk: print source file name in GluonSrcDiet (freifunk-gluon#2424)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
neocturne authored and Josha Bartsch committed Apr 12, 2023
1 parent 3042346 commit 8fb5bde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package/gluon.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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"; \
Expand Down

0 comments on commit 8fb5bde

Please sign in to comment.