Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Keep -one- copy of each repo needed
When building, first fetch once per repo, then clone locally. japhb++ for inspiration
- Loading branch information
Showing
8 changed files
with
46 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,3 +5,4 @@ rakudo.jvm | |
| Pugs.hs | ||
| roast | ||
| LAST_OUTPUT | ||
| repos | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| #!/usr/bin/env perl | ||
|
|
||
| # Pull down all the repositories that we need to work with, and | ||
| # keep a pristine copy locally. | ||
|
|
||
| my $repo_dir = "repos"; | ||
|
|
||
| if (! -d $repo_dir) { | ||
| mkdir $repo_dir; | ||
| } | ||
|
|
||
| my %repos = ( | ||
| "rakudo" => "https://github.com/rakudo/rakudo.git", | ||
| "Pugs.hs" => "https://github.com/perl6/Pugs.hs.git", | ||
| "niecza" => "https://github.com/sorear/niecza.git", | ||
| "parrot" => "https://github.com/parrot/parrot.git", | ||
| "roast" => "https://github.com/perl6/roast.git", | ||
| "nqp" => "https://github.com/perl6/nqp.git", | ||
| "MoarVM" => "https://github.com/MoarVM/MoarVM.git", | ||
| ); | ||
|
|
||
| for my $repo (keys %repos) { | ||
| my $dir = $repo_dir . "/" . $repo . ".git" ; | ||
| if (-d $dir) { | ||
| chdir $dir; | ||
| qx(git fetch); | ||
| chdir "../../"; | ||
| } else { | ||
| chdir $repo_dir; | ||
| qx(git clone --mirror $repos{$repo}); | ||
| chdir "../"; | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| #!/bin/sh | ||
|
|
||
| rm -rf roast | ||
| mkdir roast | ||
| git clone git://github.com/perl6/roast.git | ||
| git clone repos/roast.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| #!/bin/sh | ||
| ./bin/git.p5 | ||
| nice -20 ./bin/spec.sh | ||
| nice -20 ./bin/pugs.sh | ||
| nice -20 ./bin/niecza.sh | ||
|
|
||