This commit is contained in:
slamm%netscape.com 1999-08-25 06:37:58 +00:00
Родитель 758141a596
Коммит a35210d2f7
1 изменённых файлов: 5 добавлений и 7 удалений

Просмотреть файл

@ -76,15 +76,13 @@ $source_subdir .= '/' unless $source_subdir eq '';
$ac_given_srcdir = $0; $ac_given_srcdir = $0;
$ac_given_srcdir =~ s|/?build/autoconf/.*$||; $ac_given_srcdir =~ s|/?build/autoconf/.*$||;
$ac_given_srcdir = '.' if $ac_given_srcdir eq ''; $ac_given_srcdir = '.' if $ac_given_srcdir eq '';
if ($ac_given_srcdir =~ /^\./) { if ($ac_given_srcdir =~ /^\./) {
while ($depth =~ /\.\./g) { while ($depth =~ /\.\./g) {
if ($ac_given_srcdir =~ /\//) { $ac_given_srcdir =~ s/\/[^\/]+//;
$ac_given_srcdir =~ s/\/[^\/]+$//;
} else {
$ac_given_srcdir = '.';
}
} }
} }
# Build the list of makefiles to generate # Build the list of makefiles to generate
# #
@makefiles = (); @makefiles = ();
@ -94,7 +92,7 @@ foreach $makefile (@ARGV) {
$makefile =~ /Makefile$/ or $makefile .= "/Makefile"; $makefile =~ /Makefile$/ or $makefile .= "/Makefile";
push @makefiles, "${source_subdir}$makefile"; push @makefiles, "${source_subdir}$makefile";
} }
@makefiles = "${source_subdir}Makefile" unless @ARGV; @makefiles = "Makefile" if $#makefiles == -1;
# Create all the directories at once. # Create all the directories at once.
# This can be much faster than calling mkdir() for each one. # This can be much faster than calling mkdir() for each one.
@ -152,7 +150,7 @@ foreach $ac_file (@makefiles) {
} }
#mkdir $subdir, 0777 unless -d $subdir; #mkdir $subdir, 0777 unless -d $subdir;
if (-e $ac_file) { if (-e $ac_file) {
next if -M _ < -M $ac_file_in; next if -M _ < -M $ac_file_in;
warn "updating $ac_file\n"; warn "updating $ac_file\n";