diff options
author | dougb <dougb@FreeBSD.org> | 2009-03-06 16:42:29 +0800 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2009-03-06 16:42:29 +0800 |
commit | c13e2b2127c30ef3145aed44f661a33dc890597b (patch) | |
tree | 024829bd8b325538993200b605f3ad9bf91b1802 /irc/sirc | |
parent | 771fd90d985b73dfa3ae5940d390d71da8868c26 (diff) | |
download | freebsd-ports-gnome-c13e2b2127c30ef3145aed44f661a33dc890597b.tar.gz freebsd-ports-gnome-c13e2b2127c30ef3145aed44f661a33dc890597b.tar.zst freebsd-ports-gnome-c13e2b2127c30ef3145aed44f661a33dc890597b.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.
Diffstat (limited to 'irc/sirc')
-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 |