Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't error without git but all needed files are present #791

Merged
merged 1 commit into from Jan 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 13 additions & 10 deletions Configure.pl
Expand Up @@ -12,16 +12,19 @@
use FindBin;

BEGIN {
# Download / Update submodules
my $set_config = !qx{git config nqp.initialized};
if ( !-e '3rdparty/nqp-configure/LICENSE' ) {
my $code = system($^X, 'tools/build/update-submodules.pl', Cwd::cwd(), @ARGV);
exit 1 if $code >> 8 != 0;
$set_config = 1;
}
if ($set_config) {
system("git config submodule.recurse true");
system("git config nqp.initialized 1");
# The .git folder is typically missing in release archives.
if (-e '.git') {
# Download / Update submodules
my $set_config = !qx{git config nqp.initialized};
if ( !-e '3rdparty/nqp-configure/LICENSE' ) {
my $code = system($^X, 'tools/build/update-submodules.pl', Cwd::cwd(), @ARGV);
exit 1 if $code >> 8 != 0;
$set_config = 1;
}
if ($set_config) {
system("git config submodule.recurse true");
system("git config nqp.initialized 1");
}
}
}

Expand Down