avoid warnings. Default $autoconf to 'autoconf'.
+2001-02-25 Tim Van Holder <tim.van.holder@pandora.be>
+
+ * autoupdate.in: Support DOS paths. Initialize $tmp to
+ avoid warnings. Default $autoconf to 'autoconf'.
+
2001-02-25 Akim Demaille <akim@epita.fr>
* autoupdate.in (&END): Try to preserve the exit status.
* autoupdate.in (&parse_args): Support `-'.
-
+
2001-02-25 Akim Demaille <akim@epita.fr>
* autoupdate.in: Less Bournisms, more Wallisms.
use Getopt::Long;
use strict;
-(my $me = $0) =~ s,.*/,,;
+(my $me = $0) =~ s,.*[\\/],,;
# Lib files.
my $autoconf_dir = $ENV{"AC_MACRODIR"} || "@datadir@";
my $m4 = $ENV{"M4"} || "@M4@";
my $verbose = 0;
my $SIMPLE_BACKUP_SUFFIX = $ENV{'SIMPLE_BACKUP_SUFFIX'} || '~';
-my $tmp;
+my $tmp = '';
## ---------- ##
if system "$m4 --help </dev/null 2>&1 | fgrep reload-state >/dev/null";
# autoconf.
- (my $dir = $0) =~ s,[^/]*$,,;
+ (my $dir = $0) =~ s,[^\\/]*$,,;
# We test "$dir/autoconf" in case we are in the build tree, in which case
# the names are not transformed yet.
last;
}
}
+
+ # This is needed because perl's '-x' isn't a smart as bash's; that
+ # is, it won't find autoconf.sh.
+ $autoconf = 'autoconf'
+ if !$autoconf;
}
use Getopt::Long;
use strict;
-(my $me = $0) =~ s,.*/,,;
+(my $me = $0) =~ s,.*[\\/],,;
# Lib files.
my $autoconf_dir = $ENV{"AC_MACRODIR"} || "@datadir@";
my $m4 = $ENV{"M4"} || "@M4@";
my $verbose = 0;
my $SIMPLE_BACKUP_SUFFIX = $ENV{'SIMPLE_BACKUP_SUFFIX'} || '~';
-my $tmp;
+my $tmp = '';
## ---------- ##
if system "$m4 --help </dev/null 2>&1 | fgrep reload-state >/dev/null";
# autoconf.
- (my $dir = $0) =~ s,[^/]*$,,;
+ (my $dir = $0) =~ s,[^\\/]*$,,;
# We test "$dir/autoconf" in case we are in the build tree, in which case
# the names are not transformed yet.
last;
}
}
+
+ # This is needed because perl's '-x' isn't a smart as bash's; that
+ # is, it won't find autoconf.sh.
+ $autoconf = 'autoconf'
+ if !$autoconf;
}
use Getopt::Long;
use strict;
-(my $me = $0) =~ s,.*/,,;
+(my $me = $0) =~ s,.*[\\/],,;
# Lib files.
my $autoconf_dir = $ENV{"AC_MACRODIR"} || "@datadir@";
my $m4 = $ENV{"M4"} || "@M4@";
my $verbose = 0;
my $SIMPLE_BACKUP_SUFFIX = $ENV{'SIMPLE_BACKUP_SUFFIX'} || '~';
-my $tmp;
+my $tmp = '';
## ---------- ##
if system "$m4 --help </dev/null 2>&1 | fgrep reload-state >/dev/null";
# autoconf.
- (my $dir = $0) =~ s,[^/]*$,,;
+ (my $dir = $0) =~ s,[^\\/]*$,,;
# We test "$dir/autoconf" in case we are in the build tree, in which case
# the names are not transformed yet.
last;
}
}
+
+ # This is needed because perl's '-x' isn't a smart as bash's; that
+ # is, it won't find autoconf.sh.
+ $autoconf = 'autoconf'
+ if !$autoconf;
}