diff options
| -rw-r--r-- | Makefile.am | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index 50c7edde..7fe5447c 100644 --- a/Makefile.am +++ b/Makefile.am | |||
| @@ -4,7 +4,7 @@ SUBDIRS = intl lib plugins plugins-scripts po | |||
| 4 | 4 | ||
| 5 | EXTRA_DIST = config.rpath \ | 5 | EXTRA_DIST = config.rpath \ |
| 6 | ABOUT-NLS CODING FAQ LEGAL REQUIREMENTS SUPPORT THANKS \ | 6 | ABOUT-NLS CODING FAQ LEGAL REQUIREMENTS SUPPORT THANKS \ |
| 7 | Helper.pm contrib pkg nagios-plugins.spec.in | 7 | Helper.pm contrib pkg nagios-plugins.spec |
| 8 | 8 | ||
| 9 | ACLOCAL_AMFLAGS = -I lib | 9 | ACLOCAL_AMFLAGS = -I lib |
| 10 | 10 | ||
| @@ -12,7 +12,7 @@ localedir = $(datadir)/locale | |||
| 12 | DEFS = -DLOCALEDIR=\"$(localedir)\" | 12 | DEFS = -DLOCALEDIR=\"$(localedir)\" |
| 13 | 13 | ||
| 14 | dist-hook: | 14 | dist-hook: |
| 15 | sed "s/%%{VERSION}/${VERSION}/;s/%%{RELEASE}/${RELEASE}/;" $(srcdir)/nagios-plugins.spec.in > $(distdir)/nagios-plugins.spec | 15 | make THANKS nagios-plugins.spec |
| 16 | 16 | ||
| 17 | test: | 17 | test: |
| 18 | cd plugins; $(MAKE) test | 18 | cd plugins; $(MAKE) test |
| @@ -34,8 +34,12 @@ solpkg: | |||
| 34 | $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR) | 34 | $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR) |
| 35 | cd $(BUILDDIR) && $(PERL) ../$(PKGSCRIPT) ../$(PACKDIR) | 35 | cd $(BUILDDIR) && $(PERL) ../$(PKGSCRIPT) ../$(PACKDIR) |
| 36 | 36 | ||
| 37 | THANKS: THANKS.in AUTHORS | 37 | THANKS: AUTHORS |
| 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 - > $@ | 38 | @echo "This software is brought to you by the Nagios Plugins Development Team. However," > $@ |
| 39 | @echo "there have been many contributors to this project. Everyone below has helped in " >> $@ | ||
| 40 | @echo "raising bug reports, creating patches or contributing new plugins." >> $@ | ||
| 41 | @echo "" >> $@ | ||
| 42 | 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}' $? >> $@ | ||
| 39 | 43 | ||
| 40 | pkgclean: | 44 | pkgclean: |
| 41 | rm -rf $(BUILDDIR) $(PACKDIR) | 45 | rm -rf $(BUILDDIR) $(PACKDIR) |
