From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA17991; Tue, 4 Nov 2003 15:58:08 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA18144 for ; Tue, 4 Nov 2003 15:58:07 +0100 (MET) Received: from lothlorien.cymfony.com (host-64-179-106-232.ind.choiceone.net [64.179.106.232]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hA4Ew6105531 for ; Tue, 4 Nov 2003 15:58:06 +0100 (MET) Received: (from lars@localhost) by lothlorien.cymfony.com (8.11.6/8.11.6) id hA4ExA414487; Tue, 4 Nov 2003 09:59:10 -0500 From: Lars Nilsson MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16295.48830.234496.48633@gargle.gargle.HOWL> Date: Tue, 4 Nov 2003 09:59:10 -0500 To: caml-list@inria.fr Subject: Re: [Caml-list] camlp4 in script In-Reply-To: References: <87ekwoa3y1.dlv@wanadoo.fr> X-Mailer: VM 7.00 under 21.5 (beta4) "bamboo" XEmacs Lucid Reply-To: lars@cymfony.com X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 camlp:01 curiousity:01 ocamlmktop:01 camlp:01 ocamlp:01 rsh:99 ocamlp:01 rsh:99 artem:01 usr:01 ocamlrun:01 usr:01 artem:01 bin:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Just out of curiousity, wouldn't creating a new toplevel using something like ocamlmktop -I +camlp4 -custom -o ocamlp4rsh camlp4r.cma and using #!/somedir/ocamlp4rsh be a nice solution for this particular problem? No need for the two additional lines in this case. I'm sort of wondering why no-one has suggested it before me (could be related to me not knowing what I'm saying quite possibly). Lars Artem Prisyznuk writes: > On Tue, 04 Nov 2003 10:16:54 +0100, Remi Vanicat > wrote: > > > > You could try : > > #!/usr/bin/ocamlrun /usr/bin/ocaml > > > > #directory "+camlp4";; > > #load "camlp4r.cma";; > > print_string "Hello\n"; > > Thanks a lot, it work. > > -- > 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