aboutsummaryrefslogtreecommitdiff
path: root/irc/sirc/scripts/sirc-proto
diff options
context:
space:
mode:
Diffstat (limited to 'irc/sirc/scripts/sirc-proto')
-rw-r--r--irc/sirc/scripts/sirc-proto17
1 files changed, 17 insertions, 0 deletions
diff --git a/irc/sirc/scripts/sirc-proto b/irc/sirc/scripts/sirc-proto
new file mode 100644
index 000000000000..2de5b34e9810
--- /dev/null
+++ b/irc/sirc/scripts/sirc-proto
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+PREFIX=
+SIRCLIB=${PREFIX}/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 ${PREFIX}/bin/perl5 ${SIRCLIB}/dsirc "$@"
+ ;;
+ *) eval exec ${PREFIX}/bin/ssfe $SSFE ${PREFIX}/bin/perl5 ${SIRCLIB}/dsirc \"\$@\"
+esac