Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
add manifest_includes & manifest_excludes
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Dec 1, 2009
1 parent 5c10f3c commit 6ad653d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,3 +1,4 @@
MANIFEST
Makefile

*.pbc
Expand All @@ -10,6 +11,7 @@ installable_lua
installable_luap

*.tar.gz
*.zip
*.patch

*.tmp
Expand Down
23 changes: 17 additions & 6 deletions setup.pir
Expand Up @@ -61,7 +61,6 @@ No Configure step, no Makefile generated.
$P0['license_type'] = 'Artistic License 2.0'
$P0['license_uri'] = 'http://www.perlfoundation.org/artistic_license_2_0'
$P0['copyright_holder'] = 'Parrot Foundation'
$P0['generated_by'] = 'Francois Perrad <francois.perrad@gadz.org>'
$P0['checkout_uri'] = 'git://github.com/fperrad/lua.git'
$P0['browser_uri'] = 'http://github.com/fperrad/lua'
$P0['project_uri'] = 'http://github.com/fperrad/lua'
Expand Down Expand Up @@ -125,18 +124,19 @@ SOURCES
$P5['lua/luad.pbc'] = 'luad.pir'
$P0['pbc_pir'] = $P5

$P7 = new 'Hash'
$P7['parrot-lua'] = 'lua.pbc'
$P7['parrot-luap'] = 'luap.pbc'
$P0['installable_pbc'] = $P7

# post build
$P9 = new 'Hash'
$P9['lua/library/Test/More.pbc'] = 'lua/library/Test/More.pir'
$P0['liblua__pbc_pir'] = $P9
$P10 = new 'Hash'
$P10['lua/library/Test/More.pir'] = 'lua/library/Test/More.lua'
$P0['liblua__pir_lua'] = $P10

$P7 = new 'Hash'
$P7['parrot-lua'] = 'lua.pbc'
$P7['parrot-luap'] = 'luap.pbc'
$P0['installable_pbc'] = $P7

# test
$S0 = get_parrot()
$P0['prove_exec'] = $S0
Expand All @@ -153,12 +153,21 @@ SOURCES
$P8 = split ' ', 'lua/lua.pbc lua/luad.pbc'
$P0['inst_lang'] = $P8

# dist
$P1 = split ' ', 'luac2pir.pir test_lex.pir lua/lib/luabytecode.rules build/translator.pl lua/library/Test/More.lua'
$P0['manifest_includes'] = $P1
$P2 = split ' ', 'lua/lib/luabytecode_gen.pir lua/library/Test/More.pir'
$P0['manifest_excludes'] = $P2

.tailcall setup(args :flat, $P0 :flat :named)
.end

.sub 'update' :anon
.param pmc kv :slurpy :named
$I0 = file_exists('.git')
unless $I0 goto L1
system('git submodule update')
L1:
.end

.sub 'prebuild' :anon
Expand All @@ -173,6 +182,8 @@ SOURCES
system(cmd)
L1:

$I0 = file_exists('.git')
unless $I0 goto L2
$I0 = file_exists('t/lua-TestMore/src/Test/More.lua')
if $I0 goto L2
system('git submodule init t/lua-TestMore')
Expand Down

0 comments on commit 6ad653d

Please sign in to comment.