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

Commit

Permalink
Browse files Browse the repository at this point in the history
code tidy
  • Loading branch information
fperrad committed Nov 10, 2009
1 parent 6493ed9 commit 29d36d7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.pir
Expand Up @@ -30,9 +30,11 @@ No Configure step, no Makefile generated.
$P1 = new 'Hash'
$P1['markdown/grammar_gen.pir'] = 'markdown/grammar.pg'
$P0['pir_pge'] = $P1

$P2 = new 'Hash'
$P2['markdown/actions_gen.pir'] = 'markdown/actions.pm'
$P0['pir_nqp'] = $P2

$P3 = new 'Hash'
$P4 = split "\n", <<'SOURCES'
markdown/Compiler.pir
Expand All @@ -46,18 +48,21 @@ SOURCES
$P3['markdown/markdown.pbc'] = $P4
$P3['markdown.pbc'] = 'markdown.pir'
$P0['pbc_pir'] = $P3

$P6 = new 'Hash'
$P6['parrot-markdown'] = 'markdown.pbc'
$P0['exe_pbc'] = $P6
# test

$S0 = get_parrot()
$P0['prove_exec'] = $S0

# install
$P0['inst_lang'] = 'markdown/markdown.pbc'
.tailcall setup(args :flat, $P0 :flat :named)
.end

.sub 'spectest'
.sub 'spectest' :anon
.param pmc kv :slurpy :named
$I0 = file_exists('t/MarkdownTest_1.0.zip')
if $I0 goto L1
Expand All @@ -67,6 +72,7 @@ SOURCES
if $I0 goto L2
system('cd t && perl -MArchive::Zip -e "Archive::Zip->new(q{MarkdownTest_1.0.zip})->extractTree();"')
L2:

run_step('test', kv :flat :named)
.end

Expand Down

0 comments on commit 29d36d7

Please sign in to comment.