summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>1999-09-27 14:15:15 +0000
committerAndrey Hristov <andrey@php.net>1999-09-27 14:15:15 +0000
commit375c85e27f4831da987a5bacfe9d06f4e433b186 (patch)
tree9755ca36b90bf5f13c7819233f71d49f3f1ad79d
parent0413f524800e8830e2fdb161b61284a039504545 (diff)
downloadphp-git-375c85e27f4831da987a5bacfe9d06f4e433b186.tar.gz
I will follow portability guidelines.
I will follow portability guidelines. I will follow portability guidelines. I will follow...
-rwxr-xr-xext/ext_skel19
1 files changed, 14 insertions, 5 deletions
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 <<eof
dnl \$Id\$
dnl config.m4 for extension $extname
@@ -33,7 +42,7 @@ dnl don't forget to call PHP_EXTENSION($extname)
eof
-echo " Makefile.am\c"
+$ECHO_N " Makefile.am$ECHO_C"
cat >Makefile.am <<eof
# \$Id\$
@@ -44,14 +53,14 @@ libphpext_${extname}_a_SOURCES=$extname.c
eof
-echo " .cvsignore\c"
+$ECHO_N " .cvsignore$ECHO_C"
cat >.cvsignore <<eof
.deps
Makefile.in
Makefile
eof
-echo " config.h.stub\c"
+$ECHO_N " config.h.stub$ECHO_C"
cat >config.h.stub<<eof
/* define if you want to use the $extname extension */
/* #undef HAVE_LIB$EXTNAME */