X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Fdebbugsconfig;h=e98decc7255d402110ff6e19daa4af8bc302a57f;hb=5675f516e72951e15cafa1fa72e1d7ff88bb4d80;hp=135df92c869e98f657f0f38c35356d9ba3f6192d;hpb=fca62dc7b58a8077ff01843889ad7f57998536fd;p=debbugs.git diff --git a/debian/debbugsconfig b/debian/debbugsconfig index 135df92..e98decc 100755 --- a/debian/debbugsconfig +++ b/debian/debbugsconfig @@ -1,8 +1,13 @@ #!/usr/bin/perl # debbugsconfig: copies debbugs configuration files from templates, and # creates documentation in HTML and text +# Copyright (C) 1999 Darren Benham +# Copyright (C) 2000 Josip Rodin +# Licensed under the version 2 of the GNU General Public License as +# published by the Free Software Foundation use POSIX qw(strftime); +use File::Path; if (@ARGV) { print STDOUT <> $name" or die "open $name: $!"; + close TOUCH; + print "created empty $name.\n"; + } +} + +sub spooldirectory { + my $name = shift; + unless (-d "$gSpoolDir/$name") { + mkpath("$gSpoolDir/$name"); + print "$name "; + } +} + sub writefiles { local ($html, $text, $name) = @_; # first HTML