aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-08-02 14:59:15 +0000
committerBill Nottingham <notting@redhat.com>1999-08-02 14:59:15 +0000
commitc3951b0cc5dc7c674747d97e1d60ef12d486e4a7 (patch)
tree19e812d6a26445ed88a85a32a40a3c4e2d426b87 /Makefile
parentb68fe5a0050464cfb4257586fad0d86c1bcdbd6d (diff)
downloadinitscripts-c3951b0cc5dc7c674747d97e1d60ef12d486e4a7.tar
initscripts-c3951b0cc5dc7c674747d97e1d60ef12d486e4a7.tar.gz
initscripts-c3951b0cc5dc7c674747d97e1d60ef12d486e4a7.tar.bz2
initscripts-c3951b0cc5dc7c674747d97e1d60ef12d486e4a7.tar.xz
initscripts-c3951b0cc5dc7c674747d97e1d60ef12d486e4a7.zip
add a 'make check' target to catch typos.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
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