|
1 |
| -#!/usr/bin/env parrot |
2 |
| -# Copyright (C) 2009, Parrot Foundation. |
3 |
| - |
4 |
| -=head1 NAME |
5 |
| - |
6 |
| -setup.pir - Python distutils style |
7 |
| - |
8 |
| -=head1 DESCRIPTION |
9 |
| - |
10 |
| -No Configure step, no Makefile generated. |
11 |
| - |
12 |
| -=head1 USAGE |
13 |
| - |
14 |
| - $ parrot setup.pir build |
15 |
| - $ parrot setup.pir test |
16 |
| - $ sudo parrot setup.pir install |
17 |
| - |
18 |
| -=cut |
19 |
| - |
20 |
| -.sub 'main' :main |
21 |
| - .param pmc args |
22 |
| - $S0 = shift args |
23 |
| - load_bytecode 'distutils.pbc' |
24 |
| - |
25 |
| - $P0 = new 'Hash' |
26 |
| - $P0['name'] = 'Lazy K' |
27 |
| - $P0['abstract'] = 'Lazy K is a pure functional programming language.' |
28 |
| - $P0['authority'] = 'https://github.com/bschmalhofer' |
29 |
| - $P0['description'] = 'LazyK is a pure functional programming language. See http://esolangs.org/wiki/Lazy_K.' |
30 |
| - $P0['license_type'] = 'Artistic License 2.0' |
31 |
| - $P0['license_uri'] = 'http://www.perlfoundation.org/artistic_license_2_0' |
32 |
| - $P0['copyright_holder'] = 'Parrot Foundation' |
33 |
| - $P0['checkout_uri'] = 'git://github.com/bschmalhofer/lazy-k.git' |
34 |
| - $P0['browser_uri'] = 'https://github.com/bschmalhofer/lazy-k' |
35 |
| - $P0['project_uri'] = 'https://github.com/bschmalhofer/lazy-k' |
36 |
| - |
37 |
| - # build |
38 |
| - $P1 = new 'Hash' |
39 |
| - $P1['lazy.pbc'] = 'lazy.pir' |
40 |
| - $P0['pbc_pir'] = $P1 |
41 |
| - |
42 |
| - $P2 = new 'Hash' |
43 |
| - $P2['parrot-lazy'] = 'lazy.pbc' |
44 |
| - $P0['installable_pbc'] = $P2 |
45 |
| - |
46 |
| - # test |
47 |
| - $P0['test_exec'] = 'perl' |
48 |
| - |
49 |
| - .tailcall setup(args :flat, $P0 :flat :named) |
50 |
| -.end |
51 |
| - |
52 |
| -# Local Variables: |
53 |
| -# mode: pir |
54 |
| -# fill-column: 100 |
55 |
| -# End: |
56 |
| -# vim: expandtab shiftwidth=4 ft=pir: |
| 1 | +#!/usr/bin/env parrot |
| 2 | +# Copyright (C) 2009, Parrot Foundation. |
| 3 | + |
| 4 | +=head1 NAME |
| 5 | + |
| 6 | +setup.pir - Python distutils style |
| 7 | + |
| 8 | +=head1 DESCRIPTION |
| 9 | + |
| 10 | +No Configure step, no Makefile generated. |
| 11 | + |
| 12 | +=head1 USAGE |
| 13 | + |
| 14 | + $ parrot setup.pir build |
| 15 | + $ parrot setup.pir test |
| 16 | + $ sudo parrot setup.pir install |
| 17 | + |
| 18 | +=cut |
| 19 | + |
| 20 | +.sub 'main' :main |
| 21 | + .param pmc args |
| 22 | + $S0 = shift args |
| 23 | + load_bytecode 'distutils.pbc' |
| 24 | + |
| 25 | + $P0 = new 'Hash' |
| 26 | + $P0['name'] = 'Lazy K' |
| 27 | + $P0['abstract'] = 'Lazy K is a pure functional programming language.' |
| 28 | + $P0['authority'] = 'https://github.com/bschmalhofer' |
| 29 | + $P0['description'] = 'LazyK is a pure functional programming language. See http://esolangs.org/wiki/Lazy_K.' |
| 30 | + $P0['license_type'] = 'Artistic License 2.0' |
| 31 | + $P0['license_uri'] = 'http://www.perlfoundation.org/artistic_license_2_0' |
| 32 | + $P0['copyright_holder'] = 'Parrot Foundation' |
| 33 | + $P0['checkout_uri'] = 'git://github.com/bschmalhofer/lazy-k.git' |
| 34 | + $P0['browser_uri'] = 'https://github.com/bschmalhofer/lazy-k' |
| 35 | + $P0['project_uri'] = 'https://github.com/bschmalhofer/lazy-k' |
| 36 | + |
| 37 | + # build |
| 38 | + $P1 = new 'Hash' |
| 39 | + $P1['lazy.pbc'] = 'lazy.pir' |
| 40 | + $P0['pbc_pir'] = $P1 |
| 41 | + |
| 42 | + $P2 = new 'Hash' |
| 43 | + $P2['parrot-lazy'] = 'lazy.pbc' |
| 44 | + $P0['installable_pbc'] = $P2 |
| 45 | + |
| 46 | + # test |
| 47 | + $P0['test_exec'] = 'perl' |
| 48 | + |
| 49 | + .tailcall setup(args :flat, $P0 :flat :named) |
| 50 | +.end |
| 51 | + |
| 52 | +# Local Variables: |
| 53 | +# mode: pir |
| 54 | +# fill-column: 100 |
| 55 | +# End: |
| 56 | +# vim: expandtab shiftwidth=4 ft=pir: |
0 commit comments