summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2003-09-01 20:07:17 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2003-09-01 20:07:17 (GMT)
commit11c3ddab4a62befefa8fbf5c1c0e923595b15142 (patch)
tree2be3de888a862d6ff7996ebd4161a6e3673102f4 /Makefile.am
parenta0b58d77497d9f6d9ac27f9dd7c347f080820b5f (diff)
downloadmonitoring-plugins-11c3ddab4a62befefa8fbf5c1c0e923595b15142.tar.gz
Report duplicates in AUTHORS file
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@708 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 174b19b..50c7edd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,7 +35,7 @@ solpkg:
35 cd $(BUILDDIR) && $(PERL) ../$(PKGSCRIPT) ../$(PACKDIR) 35 cd $(BUILDDIR) && $(PERL) ../$(PKGSCRIPT) ../$(PACKDIR)
36 36
37THANKS: THANKS.in AUTHORS 37THANKS: THANKS.in AUTHORS
38 perl -e ' @a=<>; print sort by_last_field @a; sub by_last_field { ($$a1) = $$a =~ /\s(\w+)$$/; ($$b1) = $$b =~ /\s(\w+)$$/; $$a1 cmp $$b1}' AUTHORS | cat THANKS.in - > $@ 38 perl -e ' while (<>) { print STDERR "Duplicate: $$_",$$/ if ($$a{$$_}) ; $$a{$$_}++}; print sort by_last_field (keys %a); sub by_last_field { ($$a1) = $$a =~ /\s(\w+)$$/; ($$b1) = $$b =~ /\s(\w+)$$/; $$a1 cmp $$b1}' AUTHORS | cat THANKS.in - > $@
39 39
40pkgclean: 40pkgclean:
41 rm -rf $(BUILDDIR) $(PACKDIR) 41 rm -rf $(BUILDDIR) $(PACKDIR)