diff options
author | Doug Barton <dougb@FreeBSD.org> | 2009-03-06 08:42:29 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2009-03-06 08:42:29 +0000 |
commit | 66b2d53eb02b03f69b03aa6cd8b07e37a8e2d2ff (patch) | |
tree | bdfb83d8a6cf8fd9780d55a3fadcdece24121a5d /irc | |
parent | cbc09ad2124bf16566a0d6936caddb19e495e359 (diff) | |
download | ports-66b2d53eb02b03f69b03aa6cd8b07e37a8e2d2ff.tar.gz ports-66b2d53eb02b03f69b03aa6cd8b07e37a8e2d2ff.zip |
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.
Notes
Notes:
svn path=/head/; revision=229553
Diffstat (limited to 'irc')
-rw-r--r-- | irc/sirc/files/sirc.in | 11 | ||||
-rw-r--r-- | irc/sirc/scripts/sirc-proto | 16 |
2 files changed, 11 insertions, 16 deletions
diff --git a/irc/sirc/files/sirc.in b/irc/sirc/files/sirc.in new file mode 100644 index 000000000000..c29f5857df65 --- /dev/null +++ b/irc/sirc/files/sirc.in @@ -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 diff --git a/irc/sirc/scripts/sirc-proto b/irc/sirc/scripts/sirc-proto deleted file mode 100644 index 0c98a05ec0f5..000000000000 --- a/irc/sirc/scripts/sirc-proto +++ /dev/null @@ -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 |