Browse thread
[Caml-list] camlp4 in script
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2003-11-04 (09:16) |
From: | Remi Vanicat <vanicat@l...> |
Subject: | Re: [Caml-list] camlp4 in script |
Artem Prisyznuk <tema@sit.kiev.ua> writes: > Hello, > > If I want call ocaml script from shell I type next header for > this script: > > #!/usr/bin/ocamlrun /usr/bin/ocaml > > print_string "Hello\n";; > ..... > > > But if I want use camlp4 for source of script, I try next source > > #!/usr/bin/ocamlrun /usr/bin/ocaml -I `camlp4 -where` > > #load "camlp4r.cma"; > print_string "Hello\n"; > ..... You could try : #!/usr/bin/ocamlrun /usr/bin/ocaml #directory "+camlp4";; #load "camlp4r.cma";; print_string "Hello\n"; -- Rémi Vanicat ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners