Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a tool for generating a panda bootstrap file from all modules.
Still very much a work in progress, and not used yet.
  • Loading branch information
moritz committed May 22, 2015
1 parent a55705b commit c106f7c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tools/star/gen-panda-bootstrap.p6
@@ -0,0 +1,14 @@
#!/usr/bin/env perl6

my @modules;

for dir('modules').grep(*.d) -> $path {
my $meta-info = $path.child('META.info'.IO);
next unless $meta-info.f;
my $module = from-json($meta-info.slurp);
$module<source-type> = 'local';
$module<source-url> = '_BASEDIR_/' ~ $path.basename;
@modules.push: $module;
}

spurt 'projects.json.bootstrap', to-json(@modules)

0 comments on commit c106f7c

Please sign in to comment.