On Wed, Dec 26, 2001 at 01:11:52PM +0100, Sven wrote: > On Mon, Dec 24, 2001 at 10:56:26AM +0100, Stefano Zacchiroli wrote: > We definitively need a dh_ocaml or whatever utility to handle this, possibly > provided by the ocaml package. (using a counter maybe ?, we could also patch > the ocaml source to be able to use a counter as second field on those lines, i > will ask Xavier and the ocaml team about it). > > > BTW as already proposed, we can write a simple perl script that add and > > remove entry from ld.conf, but where we can put them? > > Erm, ... why not a little ocaml program ? Here you are: a small OCaml script that add or remove entries from /usr/lib/ocaml/ld.conf. Note that: - the script makes distinction about a trailing "/", so "/where/you/want/" is different from "/where/you/want" (I really don't like playing with regexp in OCaml), anyway I think that the standard format of ld.conf does not want trailing slashes - the perl implementation will be one order of magnitude shorter and simpler :) (but sure, we are packaging OCaml and not perl :))) Cheers. -- Stefano "Zack" Zacchiroli <zack@cs.unibo.it> ICQ# 33538863 Home Page: http://www.cs.unibo.it/~zacchiro Undergraduate student of Computer Science @ University of Bologna, Italy - Information wants to be Open -
Attachment:
pgp_r1ioU6LOS.pgp
Description: PGP signature