openbsd-ports/lang/unicon/scripts/mk_icont
2000-10-09 21:32:46 +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