openbsd-ports/lang/unicon/files/mk_icont
2006-11-02 11:09:01 +00:00

14 lines
300 B
Perl

#!/usr/bin/perl
$PREFIX=shift;
# This small script does build a suitable shell wrapper that calls
# icont, according to env variables.
print <<"EOF";
#!/bin/sh
IPATH="\${IPATH-} $PREFIX/share/ipl/lib"
LPATH="\${LPATH-} $PREFIX/share/ipl/include"
export IPATH LPATH
exec $PREFIX/lib/icont "\$@"
EOF