From 11c3ddab4a62befefa8fbf5c1c0e923595b15142 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Mon, 1 Sep 2003 20:07:17 +0000 Subject: Report duplicates in AUTHORS file git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@708 f882894a-f735-0410-b71e-b25c423dba1c --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 174b19b4..50c7edde 100644 --- a/Makefile.am +++ b/Makefile.am @@ -35,7 +35,7 @@ solpkg: cd $(BUILDDIR) && $(PERL) ../$(PKGSCRIPT) ../$(PACKDIR) THANKS: THANKS.in AUTHORS - 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 - > $@ + 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 - > $@ pkgclean: rm -rf $(BUILDDIR) $(PACKDIR) -- cgit v1.2.3