mirror of
git://git.sv.gnu.org/autoconf
synced 2025-02-17 14:01:27 +08:00
* autoscan.in (&scan_file): Skip FILE if there is FILE.in.
From Jens Petersen.
This commit is contained in:
parent
30208fadac
commit
043dcc81de
@ -1,8 +1,13 @@
|
||||
2001-07-04 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* autoscan.in (&scan_file): Skip FILE if there is FILE.in.
|
||||
From Jens Petersen.
|
||||
|
||||
2001-07-03 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
|
||||
etc. in the log.
|
||||
|
||||
|
||||
2001-07-03 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
|
||||
|
16
autoscan.in
16
autoscan.in
@ -386,27 +386,25 @@ sub scan_sh_file ($)
|
||||
# the current directory of the walk through.
|
||||
sub scan_file ()
|
||||
{
|
||||
# Wanted only if there is no corresponding FILE.in.
|
||||
return
|
||||
if -f "$_.in";
|
||||
|
||||
# Save $_ as Find::File requires it to be preserved.
|
||||
my $underscore = $_;
|
||||
|
||||
# Strip a useless leading `./'.
|
||||
$File::Find::name =~ s,^\./,,;
|
||||
|
||||
if (/^.*\.[chlymC]$/ || /^.*\.cc$/)
|
||||
if (/\.[chlymC](\.in)?$/ || /\.cc(\.in)?$/)
|
||||
{
|
||||
scan_c_file ($_);
|
||||
}
|
||||
elsif (/^[Mm]akefile$/ || /^GNUmakefile$/)
|
||||
{
|
||||
# Wanted only if there is no corresponding Makefile.in.
|
||||
scan_makefile ($_)
|
||||
if ! -f "$_.in";
|
||||
}
|
||||
elsif (/^[Mm]akefile\.in$/)
|
||||
elsif (/^[Mm]akefile(\.in)?$/ || /^GNUmakefile(\.in)?$/)
|
||||
{
|
||||
scan_makefile ($_);
|
||||
}
|
||||
elsif (/^.*\.sh$/)
|
||||
elsif (/\.sh(\.in)?$/)
|
||||
{
|
||||
scan_sh_file ($_);
|
||||
}
|
||||
|
@ -386,27 +386,25 @@ sub scan_sh_file ($)
|
||||
# the current directory of the walk through.
|
||||
sub scan_file ()
|
||||
{
|
||||
# Wanted only if there is no corresponding FILE.in.
|
||||
return
|
||||
if -f "$_.in";
|
||||
|
||||
# Save $_ as Find::File requires it to be preserved.
|
||||
my $underscore = $_;
|
||||
|
||||
# Strip a useless leading `./'.
|
||||
$File::Find::name =~ s,^\./,,;
|
||||
|
||||
if (/^.*\.[chlymC]$/ || /^.*\.cc$/)
|
||||
if (/\.[chlymC](\.in)?$/ || /\.cc(\.in)?$/)
|
||||
{
|
||||
scan_c_file ($_);
|
||||
}
|
||||
elsif (/^[Mm]akefile$/ || /^GNUmakefile$/)
|
||||
{
|
||||
# Wanted only if there is no corresponding Makefile.in.
|
||||
scan_makefile ($_)
|
||||
if ! -f "$_.in";
|
||||
}
|
||||
elsif (/^[Mm]akefile\.in$/)
|
||||
elsif (/^[Mm]akefile(\.in)?$/ || /^GNUmakefile(\.in)?$/)
|
||||
{
|
||||
scan_makefile ($_);
|
||||
}
|
||||
elsif (/^.*\.sh$/)
|
||||
elsif (/\.sh(\.in)?$/)
|
||||
{
|
||||
scan_sh_file ($_);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user