-2007-02-23 Servaas Goossens <SGoossens@ortec.nl>
+2007-02-23 Christopher Faylor <me@cgf.cx>
+ Servaas Goossens <SGoossens@ortec.nl>
+
+ * genini (get): Make sure that ldesc/sdesc strings are quoted with double
+ quotes.
+
+2007-02-23 Servaas Goossens <SGoossens@ortec.nl>
* genini: Fix minor typo in warning. Add new categories. Don't output
keys with empty values.
use Digest::MD5;
use Getopt::Long;
+use strict;
+
sub mywarn(@);
sub myerror(@);
sub usage();
open(STDOUT, '>', $outfile) or die "$0: can't open $outfile - $!\n";
}
-local %pkg;
+my %pkg;
for my $f (@ARGV) {
if (-d $f) {
$val .= "\n" . $_;
}
}
+ if (($key eq 'ldesc' || $key eq 'sdesc') and $val !~ /"/o) {
+ $pkg{$pname}{$what}{$key} = '"' . $val . '"';
+ }
return $val;
}
my $key = $1;
my $val = $2;
if ($key !~ /^(?:prev|curr|test)/) {
- $pkg{$pname}{$what}{$key} = get(F, $key, $val);
+ $pkg{$pname}{$what}{$key} = get(\*F, $key, $val);
} else {
if ($key eq 'curr') {
$key = '';