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 =~ s|/?build/autoconf/.*$||;
$ac_given_srcdir = '.' if $ac_given_srcdir eq '';
if ($ac_given_srcdir =~ /^\./) {
while ($depth =~ /\.\./g) {
if ($ac_given_srcdir =~ /\//) {
$ac_given_srcdir =~ s/\/[^\/]+$//;
} else {
$ac_given_srcdir = '.';
}
$ac_given_srcdir =~ s/\/[^\/]+//;
}
}
# Build the list of makefiles to generate
#
@makefiles = ();
@ -94,7 +92,7 @@ foreach $makefile (@ARGV) {
$makefile =~ /Makefile$/ or $makefile .= "/Makefile";
push @makefiles, "${source_subdir}$makefile";
}
@makefiles = "${source_subdir}Makefile" unless @ARGV;
@makefiles = "Makefile" if $#makefiles == -1;
# Create all the directories at once.
# This can be much faster than calling mkdir() for each one.