Checkout submodules recursively.

This commit is contained in:
David Anderson 2015-03-15 19:31:34 -07:00
parent 7fc993e079
commit 8b0a10ad1d

View File

@ -11,8 +11,14 @@ chdir($path);
require 'helpers.pm'; require 'helpers.pm';
#Go back to tree root.
my ($result);
chdir(Build::PathFormat('../..'));
$result = `git submodule update --init --recursive`;
print "$result\n";
#Go back above build dir #Go back above build dir
chdir(Build::PathFormat('../../..')); chdir(Build::PathFormat('..'));
#Get the source path. #Get the source path.
our ($root) = getcwd(); our ($root) = getcwd();
@ -24,7 +30,7 @@ if (!(-f 'OUTPUT/.ambuild2/graph') || !(-f 'OUTPUT/.ambuild2/vars')) {
mkdir('OUTPUT') or die("Failed to create output folder: $!\n"); mkdir('OUTPUT') or die("Failed to create output folder: $!\n");
} }
chdir('OUTPUT'); chdir('OUTPUT');
my ($result, $argn); my ($argn);
$argn = $#ARGV + 1; $argn = $#ARGV + 1;
print "Attempting to reconfigure...\n"; print "Attempting to reconfigure...\n";