Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] camlp4 in script
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Artem Prisyznuk <tema@s...>
Subject: [Caml-list] camlp4 in script
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";
   .....


When I try execute this script shell print next error:

   Fatal error: cannot find file /usr/bin/ocaml -I /usr/lib/ocaml/camlp4

How I can execute script witch revised syntax?

-- 
Artem Prysyznuk
tema@sit.kiev.ua

-------------------
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