# 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=find\r
+\r
\r
#### DO NOT TOUCH FROM HERE ONWARDS ###\r
\r
# recover version number from code\r
# thanks to Firman Pribadi for unix command line help\r
-export VERSION=$(shell egrep "\$GLOBALS *\[ *'xmlrpcVersion' *\] *= *'" xmlrpc.inc | sed -r s/"(.*= *' *)([0-9a-zA-Z.-]+)(.*)"/\\2/g )\r
-\r
-LIBFILES=xmlrpc.inc xmlrpcs.inc xmlrpc_wrappers.inc compat/*.php\r
-\r
-EXTRAFILES=test.pl \\r
- test.py \\r
- rsakey.pem \\r
- workspace.testPhpServer.fttb\r
-\r
-DEMOFILES=vardemo.php \\r
- demo1.txt \\r
- demo2.txt \\r
- demo3.txt\r
-\r
-DEMOSFILES=discuss.php \\r
- server.php \\r
- proxy.php\r
-\r
-DEMOCFILES=agesort.php \\r
- client.php \\r
- comment.php \\r
- introspect.php \\r
- mail.php \\r
- simple_call.php \\r
- which.php \\r
- wrap.php \\r
- zopetest.php\r
-\r
-TESTFILES=testsuite.php \\r
- benchmark.php \\r
- parse_args.php \\r
- phpunit.php \\r
- verify_compat.php \\r
- PHPUnit/*.php\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
+\r
+LIBFILES=lib/xmlrpc.inc lib/xmlrpcs.inc lib/xmlrpc_wrappers.inc lib/compat/*.php\r
+\r
+EXTRAFILES=extras/test.pl \\r
+ extras/test.py \\r
+ extras/rsakey.pem \\r
+ extras/workspace.testPhpServer.fttb\r
+\r
+DEMOFILES=demo/vardemo.php \\r
+ demo/demo1.txt \\r
+ demo/demo2.txt \\r
+ demo/demo3.txt\r
+\r
+DEMOSFILES=demo/server/discuss.php \\r
+ demo/server/server.php \\r
+ demo/server/proxy.php\r
+\r
+DEMOCFILES=demo/client/agesort.php \\r
+ demo/client/client.php \\r
+ demo/client/comment.php \\r
+ demo/client/introspect.php \\r
+ demo/client/mail.php \\r
+ demo/client/simple_call.php \\r
+ demo/client/which.php \\r
+ demo/client/wrap.php \\r
+ demo/client/zopetest.php\r
+\r
+TESTFILES=test/testsuite.php \\r
+ test/benchmark.php \\r
+ test/parse_args.php \\r
+ test/phpunit.php \\r
+ test/verify_compat.php \\r
+ test/PHPUnit/*.php\r
\r
INFOFILES=Changelog \\r
Makefile \\r
${MKDIR} xmlrpc-${VERSION}/demo\r
${MKDIR} xmlrpc-${VERSION}/demo/client\r
${MKDIR} xmlrpc-${VERSION}/demo/server\r
- cp --parents ${DEMOFILES} xmlrpc-${VERSION}/demo\r
- cp --parents ${DEMOCFILES} xmlrpc-${VERSION}/demo/client\r
- cp --parents ${DEMOSFILES} xmlrpc-${VERSION}/demo/server\r
${MKDIR} xmlrpc-${VERSION}/test\r
${MKDIR} xmlrpc-${VERSION}/test/PHPUnit\r
- cp --parents ${TESTFILES} xmlrpc-${VERSION}/test\r
${MKDIR} xmlrpc-${VERSION}/extras\r
- cp --parents ${EXTRAFILES} xmlrpc-${VERSION}/extras\r
${MKDIR} xmlrpc-${VERSION}/lib\r
${MKDIR} xmlrpc-${VERSION}/lib/compat\r
- cp --parents ${LIBFILES} xmlrpc-${VERSION}/lib\r
${MKDIR} xmlrpc-${VERSION}/debugger\r
- cp ${DEBUGGERFILES} xmlrpc-${VERSION}/debugger\r
+ cp --parents ${DEMOFILES} xmlrpc-${VERSION}\r
+ cp --parents ${DEMOCFILES} xmlrpc-${VERSION}\r
+ cp --parents ${DEMOSFILES} xmlrpc-${VERSION}\r
+ cp --parents ${TESTFILES} xmlrpc-${VERSION}\r
+ cp --parents ${EXTRAFILES} xmlrpc-${VERSION}\r
+ cp --parents ${LIBFILES} xmlrpc-${VERSION}\r
+ cp --parents ${DEBUGGERFILES} xmlrpc-${VERSION}\r
cp ${INFOFILES} xmlrpc-${VERSION}\r
cd doc && $(MAKE) dist\r
- find xmlrpc-${VERSION} -type f ! -name "*.fttb" ! -name "*.pdf" ! -name "*.gif" -exec dos2unix {} \;\r
+# on unix shells last char should be \;\r
+ ${FIND} xmlrpc-${VERSION} -type f ! -name "*.fttb" ! -name "*.pdf" ! -name "*.gif" -exec dos2unix {} ;\r
-rm xmlrpc-${VERSION}.zip xmlrpc-${VERSION}.tar.gz\r
tar -cvf xmlrpc-${VERSION}.tar xmlrpc-${VERSION}\r
gzip xmlrpc-${VERSION}.tar\r