From e57ac80dde19d259e6e65be60a89c0cdd46c3b64 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 16 Oct 2006 19:28:43 +0000 Subject: Add test/bbackupd/testfiles/syncallowscript.pl to the list of Perl files auto-generated with substitutions. (refs #3) --- test/bbackupd/testfiles/syncallowscript.pl.in | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 test/bbackupd/testfiles/syncallowscript.pl.in (limited to 'test') diff --git a/test/bbackupd/testfiles/syncallowscript.pl.in b/test/bbackupd/testfiles/syncallowscript.pl.in new file mode 100755 index 00000000..af425e90 --- /dev/null +++ b/test/bbackupd/testfiles/syncallowscript.pl.in @@ -0,0 +1,33 @@ +#!@PERL@ + +use strict; +use warnings; + +my $control_file = 'testfiles/syncallowscript.control'; +if (! -r $control_file) +{ + print "now\n"; + exit 0; +} + +my $control_state; +open CONTROL, "< $control_file" or die "$control_file: $!"; +$control_state = ; +defined $control_state or die "$control_file: read failed: $!"; +close CONTROL; + +my $marker_file_root = 'testfiles/syncallowscript.notifyran.'; +my $n = 1; +my $marker_file; + +while($marker_file = $marker_file_root.$n and -e $marker_file) +{ + $n ++; +} + +open FL,'>'.$marker_file or die "$marker_file: $!"; +print FL localtime(); +close FL; + +print $control_state; +exit 0; -- cgit v1.2.3