summaryrefslogtreecommitdiff
path: root/src/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol')
-rwxr-xr-xsrc/protocol/configure30
-rw-r--r--src/protocol/plexus.c2
2 files changed, 25 insertions, 7 deletions
diff --git a/src/protocol/configure b/src/protocol/configure
index 119c7c887..68d2b7713 100755
--- a/src/protocol/configure
+++ b/src/protocol/configure
@@ -1,30 +1,48 @@
#!/bin/sh
-echo -n "SRCS=" > ./Makefile.inc
+echo2 () {
+ $ECHO2 "$*$ECHO2SUF" # these are defined later
+}
+
+ECHO2SUF=''
+if [ "`echo -n a ; echo -n b`" = "ab" ] ; then
+ ECHO2='echo -n'
+elif [ "`echo 'a\c' ; echo 'b\c'`" = "ab" ] ; then
+ ECHO2='echo' ; ECHO2SUF='\c'
+elif [ "`printf 'a' 2>&1 ; printf 'b' 2>&1`" = "ab" ] ; then
+ ECHO2='printf "%s"'
+else
+ # oh well...
+ ECHO2='echo'
+fi
+export ECHO2 ECHO2SUF
+
+
+echo2 "SRCS=" > ./Makefile.inc
FIRST=1
for oldfile in *.c
do
if [ "$FIRST" = 1 ] ; then
- echo -n " "$oldfile >> ./Makefile.inc
+ echo2 " "$oldfile >> ./Makefile.inc
else
echo "\\" >> ./Makefile.inc
- echo -n " " $oldfile >> ./Makefile.inc
+ echo2 " " $oldfile >> ./Makefile.inc
fi
FIRST=0
done
echo "" >> ./Makefile.inc
-echo -n "SUBS=" >> ./Makefile.inc
+echo2 "SUBS=" >> ./Makefile.inc
FIRST=1
for dir in *
do
if [ -d $dir ] ; then
if [ -f $dir/Makefile ] ; then
if [ "$FIRST" = 1 ] ; then
- echo -n " "$dir >> ./Makefile.inc
+ echo2 " "$dir >> ./Makefile.inc
else
echo "\\" >> ./Makefile.inc
- echo -n " " $dir >> ./Makefile.inc
+ echo2 " " $dir >> ./Makefile.inc
fi
FIRST=0
fi
diff --git a/src/protocol/plexus.c b/src/protocol/plexus.c
index 640126235..32f9feea3 100644
--- a/src/protocol/plexus.c
+++ b/src/protocol/plexus.c
@@ -1,5 +1,6 @@
/* PlexusIRCD IRCD functions
/* PlexusIRCD IRCD functions
+/* PlexusIRCD IRCD functions
*
* (C) 2003-2005 Anope Team
* Contact us at info@anope.org
@@ -695,7 +696,6 @@ void moduleAddIRCDMsgs(void) {
}
/* *INDENT-ON* */
-
void plexus_cmd_sqline(char *mask, char *reason)
{
send_cmd(NULL, "RESV * %s :%s", mask, reason);