6 config.pir - Print a Parrot configuration item
14 ./parrot parrot-config.pir VERSION
15 ./parrot parrot-config.pir ccflags
16 ./parrot parrot-config.pir --dump
20 Print out configuration items.
24 Leopold Toetsch E<lt>lt@toetsch.atE<gt>.
28 Copyright (C) 2004-2009, Parrot Foundation.
36 if argc < 2 goto usage
37 .local pmc interp, conf_hash
39 .include "iglobals.pasm"
41 conf_hash = interp[.IGLOBALS_CONFIG_HASH]
46 if key == '--help' goto usage
47 if key == '--dump' goto dump
48 $I0 = defined conf_hash[key]
49 unless $I0 goto failkey
51 if i < argc goto dumpsome
60 $I0 = defined conf_hash[key]
61 unless $I0 goto failkey
68 if i <= argc goto dumpsome
71 print " no such key: '"
77 iterator = iter conf_hash
79 unless iterator goto iter_end
93 $P1 = $P0.'stdhandle'(.PIO_STDERR_FILENO)
95 $P1.'print'(" [ <config-key> [ <config-key> ... ] | --dump | --help ]\n")
103 # vim: expandtab shiftwidth=4 ft=pir: