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.
This commit is contained in:
Doug Barton 2009-03-06 08:42:29 +00:00
parent cbc09ad212
commit 66b2d53eb0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=229553
2 changed files with 11 additions and 16 deletions

11
irc/sirc/files/sirc.in Normal file
View file

@ -0,0 +1,11 @@
#!/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

View file

@ -1,16 +0,0 @@
#!/bin/sh
SIRCLIB=PREFIX.SED/libexec/sirc ; export SIRCLIB
if test -z "$SIRCSERVER" && test -z "$IRCSERVER"
then
SIRCSERVER="irc.dal.net"
export SIRCSERVER
fi
case "$1" in
-d) shift
exec PERL5.SED ${SIRCLIB}/dsirc "$@"
;;
*) eval exec PREFIX.SED/bin/ssfe $SSFE PERL5.SED ${SIRCLIB}/dsirc \"\$@\"
esac