Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 598 → Rev 599

/branches/Version13x/Scribus/admin/conf.change.pl
1,4 → 1,4
#!/usr/bin/perl -w
#!/usr/bin/env perl
 
# this script patches a config.status file, to use our own perl script
# in the main loop
27,11 → 27,12
# later autoconf's
# 2. the big main loop which patches all Makefile.in's
 
use strict;
use File::Basename;
 
my $ac_aux_dir = dirname($0);
my ($flag);
local $ac_version = 0;
my $ac_version = 0;
my $vpath_seen = 0;
$flag = 0;
 
78,6 → 79,11
# 2. begins with: "for ac_file in.*CONFIG_FILES" (the next 'for' after (1))
# end with: "rm -f conftest.s\*"
# on autoconf 250, it ends with '# CONFIG_HEADER section'
#
# gg: if a post-processing commands section is found first,
# stop there and insert a new loop to honour the case/esac.
# (pattern: /^\s+#\sRun the commands associated with the file./)
 
if (/^\s*for\s+ac_file\s+in\s+.*CONFIG_FILES/ ) {
$flag = 3;
} else {
94,9 → 100,11
if ($ac_version != 2141) {
print STDERR "hmm, don't know autoconf version\n";
}
} elsif (/^\#\s*CONFIG_HEADER section.*/) {
} elsif (/^\#\s*CONFIG_(HEADER|COMMANDS) section.*|^\s+#\s(Run) the commands associated/) {
$flag = 4;
my $commands = defined $2;
&insert_main_loop();
$commands && insert_command_loop();
if($ac_version != 250) {
print STDERR "hmm, something went wrong :-(\n";
}
175,3 → 183,9
EOF
return;
}
 
sub insert_command_loop {
print <<EOF;
for ac_file in .. \$CONFIG_FILES ; do
EOF
}