argv => [@ARGV], # get a copy!
);
chdir $RealBin or die "$0: Can't chdir to '$RealBin': $!\n";
argv => [@ARGV], # get a copy!
);
chdir $RealBin or die "$0: Can't chdir to '$RealBin': $!\n";
die "auto-update not possible: need write permissions in @{[cwd]}\n"
if not -w '.';
# Get information about our remote and calculate the chance for a
die "auto-update not possible: need write permissions in @{[cwd]}\n"
if not -w '.';
# Get information about our remote and calculate the chance for a
# http://stackoverflow.com/questions/3258243/check-if-pull-needed-in-git
system("git fetch $remote") == 0 or die "'git fetch $remote' failed\n";
my ($upstream, $local, $base) = qx'git rev-parse ...@{upstream}' or die "'git rev-parse' failed\n";
# http://stackoverflow.com/questions/3258243/check-if-pull-needed-in-git
system("git fetch $remote") == 0 or die "'git fetch $remote' failed\n";
my ($upstream, $local, $base) = qx'git rev-parse ...@{upstream}' or die "'git rev-parse' failed\n";
- # Need to set the path here so we make sure we pick up the right perl.
- # It has to be the perl that the build script would choose
+ # Need to set the path here so we make sure we pick up the right Perl.
+ # It has to be the Perl that the build script would choose
# i.e. specially *not* the MinGW SDK perl that is invoked for the
# build script, which means we need to put the path back the way it was
# when we're done
# i.e. specially *not* the MinGW SDK perl that is invoked for the
# build script, which means we need to put the path back the way it was
# when we're done
-my $global_lock_dir =
- $EximBuild::conf{global_lock_dir}
- ||$EximBuild::conf{build_root}
- ||'';
+my $global_lock_dir = $EximBuild::conf{global_lock_dir}
+ // $EximBuild::conf{build_root}
+ // die "$0: need global_lock_dir\n";
# Explicitly use perl from the path (and not this perl, so don't use $^X)
# This script needs to run on Cygwin with non-cygwin perl if it's running
# in tandem with AS/MinGW perl, since Cygwin perl doesn't honor locks
# Explicitly use perl from the path (and not this perl, so don't use $^X)
# This script needs to run on Cygwin with non-cygwin perl if it's running
# in tandem with AS/MinGW perl, since Cygwin perl doesn't honor locks
# to run with the native perl, even on Cygwin, which it picks up from
# the path. (Head exploding yet?).
# to run with the native perl, even on Cygwin, which it picks up from
# the path. (Head exploding yet?).