From: Andrey Hristov Date: Mon, 27 Sep 1999 14:15:15 +0000 (+0000) Subject: I will follow portability guidelines. X-Git-Tag: PRE_FETCH_READ_PATCH~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=375c85e27f4831da987a5bacfe9d06f4e433b186;p=php I will follow portability guidelines. I will follow portability guidelines. I will follow portability guidelines. I will follow... --- diff --git a/ext/ext_skel b/ext/ext_skel index bbcadb3478..85f61a077b 100755 --- a/ext/ext_skel +++ b/ext/ext_skel @@ -16,6 +16,15 @@ if test -d "$extname" ; then givup "Directory $extname already exists." fi +if echo '\c' | grep -s c >/dev/null 2>&1 +then + ECHO_N="echo -n" + ECHO_C="" +else + ECHO_N="echo" + ECHO_C='\c' +fi + echo "Creating directory" mkdir $extname || givup "Cannot create directory $extname" @@ -23,9 +32,9 @@ mkdir $extname || givup "Cannot create directory $extname" cd $extname chmod 755 . -echo "Creating basic files:\c" +$ECHO_N "Creating basic files:$ECHO_C" -echo " config.m4\c" +$ECHO_N " config.m4$ECHO_C" cat >config.m4 <Makefile.am <.cvsignore <config.h.stub<