From c3951b0cc5dc7c674747d97e1d60ef12d486e4a7 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 2 Aug 1999 14:59:15 +0000 Subject: add a 'make check' target to catch typos. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a9672406..e2f242d0 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,11 @@ install: chown root.root /var/run/netreport chmod og=rwx,o=rx /var/run/netreport +check: + for afile in `find . -type f ` ; do \ + grep -q "^#\!/bin/sh" $$afile && { bash -n $$afile || exit 1 } ; \ + done + changelog: rcs2log | sed "s|@.*redhat\.com|redhat.com|" | \ sed "s|/mnt/devel/CVS/initscripts/||g" > changenew @@ -55,4 +60,4 @@ create-archive: tag-archive @echo " " @echo "The final archive is ./initscripts-$(VERSION).tar.gz." -archive: tag-archive create-archive +archive: check tag-archive create-archive -- cgit v1.2.1