https://gitorious.org/ocamlp3l/ocamlp3l_cvs.git
Revision 1802f09130f30875586dcd8f7b60b9204973d103 authored by weis on 02 May 2006, 12:34:19 UTC, committed by weis on 02 May 2006, 12:34:19 UTC
1 parent 70722f5
Raw File
Tip revision: 1802f09130f30875586dcd8f7b60b9204973d103 authored by weis on 02 May 2006, 12:34:19 UTC
Adding proper compile flags to the Caml compilers.
Tip revision: 1802f09
ocamlp3lcc
#!###PERL###
use Getopt::Long;

$DEFAULTVERSION="###VERSION###";
$INSTALLDIR="###INSTALLDIR###";

$opt_version=$DEFAULTVERSION;

Getopt::Long::config("pass_through"); ### pass relevant options to the called script...

$result =GetOptions ("-version:s","-model:s");

if (! defined($opt_model)) {$opt_model="process";}; ### default execution model is process

$bin  = "$INSTALLDIR/$opt_version/ocamlp3l-v$opt_model/bin/ocamlp3lcc";

if (!(-f $bin)) {print "Version or model unsupported in $bin"; exit 1;};
 
print "Compiling using $opt_model model, version $opt_version\n";

$out = `$bin @ARGV`;
print $out;

exit;
back to top