mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
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:
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
11
irc/sirc/files/sirc.in
Normal 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
|
|
@ -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
|
Loading…
Add table
Reference in a new issue