[arch-projects] [devtools] [PATCH 2/2] Makefile: validate generated files as part of build

Dave Reisner dreisner at archlinux.org
Tue Jul 30 15:24:49 EDT 2013


For example...

$ make
GEN checkpkg
GEN commitpkg
GEN archco
archco: line 179: unexpected EOF while looking for matching `"'
archco: line 181: syntax error: unexpected end of file
make: *** [archco] Error 2

Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---

 Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile b/Makefile
index 674d656..c7e8064 100644
--- a/Makefile
+++ b/Makefile
@@ -77,6 +77,7 @@ edit = sed -e "s|@pkgdatadir[@]|$(DESTDIR)$(PREFIX)/share/devtools|g"
 	@m4 -P $@.in | $(edit) >$@
 	@chmod a-w "$@"
 	@chmod +x "$@"
+	@bash -O extglob -n "$@"
 
 clean:
 	rm -f $(BINPROGS) bash_completion zsh_completion
-- 
1.8.3.4



More information about the arch-projects mailing list