freebsd-ports/irc/sirc/files/sirc.in
Doug Barton 66b2d53eb0 Move version 1.3 of scripts/sirc-proto to files/sirc.in,
and modernize the script to take advantage of SUB_FILES.

Also simplify it a bit without losing any functionality.
2009-03-06 08:42:29 +00:00

12 lines
217 B
Bash

#!/bin/sh
SIRCLIB=%%PREFIX%%/libexec/sirc ; export SIRCLIB
case "$1" in
-d) shift ; exec ${SIRCLIB}/dsirc "$@" ;;
*) eval exec %%PREFIX%%/bin/ssfe $SSFE ${SIRCLIB}/dsirc \"\$@\"
esac
# Should not be reached
exit 1