2 # Copyright (C) 2009, Jonathan "Duke" Leto
6 setup.pir - Setup, build, test and install Tapir
10 No Configure step, no Makefile generated.
12 See F<runtime/parrot/library/distutils.pir>.
16 $ parrot setup.pir build
17 $ parrot setup.pir test
18 $ sudo parrot setup.pir install
25 load_bytecode 'distutils.pbc'
27 .const 'Sub' test = 'test'
28 register_step('test', test)
32 $P0['abstract'] = 'Fast TAP Harness written in PIR'
33 $P0['authority'] = 'http://github.com/leto'
34 $P0['description'] = 'Fast TAP Harness written in PIR'
35 $P1 = split ';', 'TAP;harness;testing'
37 $P0['license_type'] = 'Artistic License 2.0'
38 $P0['license_uri'] = 'http://www.perlfoundation.org/artistic_license_2_0'
39 $P0['copyright_holder'] = "Jonathan \"Duke\" Leto"
40 $P0['checkout_uri'] = 'git://github.com/leto/tapir.git'
41 $P0['browser_uri'] = 'http://github.com/leto/tapir'
42 $P0['project_uri'] = 'http://github.com/leto/tapir'
46 $P3 = split "\n", <<'SOURCES'
52 $P2['tapir.pbc'] = $P3
56 $P5['parrot-tapir'] = 'tapir.pbc'
58 $P0['installable_pbc'] = $P5
60 .tailcall setup(args :flat, $P0 :flat :named)
64 .param pmc kv :slurpy :named
65 run_step('build', kv :flat :named)
69 $S0 = config['osname']
71 unless $S0 == 'MSWin32' goto L1
78 system(cmd, 1 :named('verbose'))
85 # vim: expandtab shiftwidth=4 ft=pir: