small makefile tweak 3.1.0
authorgggeek <giunta.gaetano@gmail.com>
Sat, 1 Jul 2017 19:21:56 +0000 (20:21 +0100)
committergggeek <giunta.gaetano@gmail.com>
Sat, 1 Jul 2017 19:21:56 +0000 (20:21 +0100)
Makefile

index a421f20..d1c837b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ PHPINCLUDEDIR=/usr/local/lib/php
 # mkdir is a thorny beast under windows: make sure we can not use the cmd version, running eg. "make MKDIR=mkdir.exe"\r
 MKDIR=mkdir\r
 \r
-#find too\r
+# find too\r
 FIND=find\r
 \r
 \r
@@ -20,7 +20,7 @@ FIND=find
 # recover version number from code\r
 # thanks to Firman Pribadi for unix command line help\r
 #   on unix shells lasts char should be \\2/g )\r
-export VERSION=$(shell egrep "\$GLOBALS *\[ *'xmlrpcVersion' *\] *= *'" lib/xmlrpc.inc | sed -r s/"(.*= *' *)([0-9a-zA-Z.-]+)(.*)"/\2/g )\r
+export VERSION=$(shell grep -E "\$GLOBALS *\[ *'xmlrpcVersion' *\] *= *'" lib/xmlrpc.inc | sed -r s/"(.*= *' *)([0-9a-zA-Z.-]+)(.*)"/\2/g )\r
 \r
 LIBFILES=lib/xmlrpc.inc lib/xmlrpcs.inc lib/xmlrpc_wrappers.inc\r
 \r