Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Option for force-rebuilding rakudo
  • Loading branch information
moritz committed Mar 21, 2015
1 parent 1cfc4c5 commit cc0cee4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build-scripts/rebuild-rakudo.pl
Expand Up @@ -6,6 +6,7 @@
use autodie;
use Data::Dumper;

my $force = shift(@ARGV) // 0;
say scalar localtime();
chdir glob '~';

Expand Down Expand Up @@ -33,7 +34,7 @@
chomp $r;
my $needs_rebuild = `git rev-parse HEAD | grep ^$r|wc -l`;
chomp $needs_rebuild;
if ($needs_rebuild) {
if (!$force && $needs_rebuild) {
say "Don't need to rebuild, we are on the newest revision anyway";
exit;
}
Expand Down
2 changes: 1 addition & 1 deletion build.pl
Expand Up @@ -14,5 +14,5 @@

die "Found no rebuild script for $what\n" unless $script;

system "flock -w 60 $script_dir/lock.$what $script >~/log/$what.log 2>&1";
system "flock -w 60 $script_dir/lock.$what $script @ARGV >~/log/$what.log 2>&1";
#system $^X, "$FindBin::Bin/sync.pl", $what;

0 comments on commit cc0cee4

Please sign in to comment.