X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Fdebbugsconfig;h=e98decc7255d402110ff6e19daa4af8bc302a57f;hb=ee73b48c52cedb53381b6c0291693fa1e2a66d2c;hp=4ff483deea074e658d22f50b594107ecb3e3921f;hpb=35c2c83912f7319e8718dfd4b965a08b3ce4b43d;p=debbugs.git diff --git a/debian/debbugsconfig b/debian/debbugsconfig index 4ff483d..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 @@ -94,7 +127,7 @@ sub writefiles { die "\nunable to write $gDocDir/$text.txt\n"; system ("rm -rf /tmp/.links/"); } elsif (-x "/usr/bin/lynx") { - system ("lynx -nolist -dump -cfg=$gConfigDir/html/lynx-cfg $gDocDir/$text.html > $gDocDir/$text.txt") == 0 || + system ("lynx -nolist -dump -cfg=/dev/null $gDocDir/$text.html > $gDocDir/$text.txt") == 0 || die "\nunable to write $gDocDir/$text.txt\n"; } else { print "unable to write text versions of the HTMLs!";