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

Commit

Permalink
convert Configure in PIR (from Perl)
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Nov 6, 2009
1 parent 66df44d commit 3868bf1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 87 deletions.
35 changes: 35 additions & 0 deletions Configure.pir
@@ -0,0 +1,35 @@
#! /usr/local/bin/parrot
# Copyright (C) 2009, Parrot Foundation.

.include 'iglobals.pasm'

.sub 'main' :main
load_bytecode 'Configure.pbc'

.local pmc config
$P0 = getinterp
config = $P0[.IGLOBALS_CONFIG_HASH]

# Here, do the job
push_eh _handler
genfile('build/Makefile.in', 'Makefile', config)
pop_eh
end

_handler:
.local pmc e
.local string msg
.get_results (e)
printerr "\n"
msg = e
printerr msg
printerr "\n"
end
.end

# Local Variables:
# mode: pir
# fill-column: 100
# End:
# vim: expandtab shiftwidth=4 ft=pir:

86 changes: 0 additions & 86 deletions Configure.pl

This file was deleted.

2 changes: 1 addition & 1 deletion build/Makefile.in
Expand Up @@ -96,7 +96,7 @@ handler/xmlwriter/gen_builtins.pir: $(HANDLER_XMLWRITER_BUILTINS_PIR)
$(CAT) $(HANDLER_XMLWRITER_BUILTINS_PIR) > handler/xmlwriter/gen_builtins.pir

Makefile: build/Makefile.in
$(PERL) Configure.pl
$(PARROT) Configure.pir

# This is a listing of all targets, that are meant to be called by users
help:
Expand Down

0 comments on commit 3868bf1

Please sign in to comment.