freebsd-ports/devel/ocaml-ulex/pkg-install
Ying-Chieh Liao f2177fd0c8 reimport ocaml-ulex 0.4
A lexer generator for Unicode and OCaml
2004-03-19 01:56:37 +00:00

9 lines
367 B
Bash

#!/bin/sh
if [ "$2" = "POST-INSTALL" ]; then
echo "${PKG_PREFIX}/lib/ocaml/site-lib/ulex" >> ${PKG_PREFIX}/lib/ocaml/ld.conf
elif [ "$2" = "DEINSTALL" ]; then
mv ${PKG_PREFIX}/lib/ocaml/ld.conf ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
grep -v ulex ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf
rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
fi