# HG changeset patch # User Heiko Schlittermann # Date 1274826815 -7200 # Node ID 445a642db0475791792eec1622994bedf3606e57 # Parent c2b7d1a1227fb6534ad4a782771480faf72b9ef3 Added the Makefile. diff -r c2b7d1a1227f -r 445a642db047 Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Wed May 26 00:33:35 2010 +0200 @@ -0,0 +1,7 @@ +# primitive, but it's 0:12 am +# .hs + +install: + install -m 0755 -d /etc/exim4/bin + install -m 0755 check /etc/exim4/bin/ + perl -i -pe 's{^(# local source :).*$$}{$$1 $(shell pwd)}' /etc/exim4/bin/check diff -r c2b7d1a1227f -r 445a642db047 check --- a/check Wed May 26 00:10:07 2010 +0200 +++ b/check Wed May 26 00:33:35 2010 +0200 @@ -1,6 +1,8 @@ #! /usr/bin/perl # © Heiko Schlittermann -# Sources: https://keller.schlittermann.de/hg/exim-checks +# global source: https://keller.schlittermann.de/hg/exim-checks +# local source : + use strict; use warnings; @@ -15,7 +17,7 @@ my $opt_init = 0; my $opt_refresh = 0; -my $opt_dir = \'dirname($opt_config) . "/lib"'; +my $opt_dir = \'dirname($opt_config) . "/checks"'; my $opt_config = undef; my $opt_exim = undef; @@ -125,9 +127,11 @@ =head1 SYNOPSIS + check [options] [
...] + check [options] -i|--init
... - check [options] [
...] check [options] -r|--refresh
... + check {-h|-m}|{--help|--man} =head1 DESCRIPTION @@ -146,14 +150,14 @@ =item B<-d>|B<--dir> I -The directory containing the checks (default: C) +The directory containing the checks (default: C) -=item B<-i>|B<--init> +=item B<-i>|B<--init> I
Initialize the tests (run them for the first time and remember the results. (default: not used) -=item B<-r>|B<--refresh> +=item B<-r>|B<--refresh> I
Refresh the results (should be used after a verified change). (default: not used)