From 296c1d8a5a948d5ae6756d7b55b16c64f56cf4c3 Mon Sep 17 00:00:00 2001 From: "rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Tue, 17 May 2005 18:01:26 +0000 Subject: BUILD : 1.7.9 (797) BUGS : N/A NOTES : Applied some nicities for sun boxs git-svn-id: svn://svn.anope.org/anope/trunk@797 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@556 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/configure | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'src/core') diff --git a/src/core/configure b/src/core/configure index 119c7c887..68d2b7713 100755 --- a/src/core/configure +++ b/src/core/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 -- cgit