source: TI12-security/trunk/NDGSecurity/python/Tests/etreewss/server/Makefile @ 7080

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/Tests/etreewss/server/Makefile@7080
Revision 7080, 868 bytes checked in by pjkersha, 9 years ago (diff)
  • Property svn:keywords set to Id
Line 
1#
2# NERC Data Grid Project
3#
4# @author P J Kershaw 05/12/07
5#
6# Generate web service stubs from WSDL for Attribute Authority client and
7# server side code
8#
9# @copyright (C) 2007 STFC
10#
11# @license This software may be distributed under the terms of the Q Public
12# License, version 1.0 or later.
13#
14# $Id:$
15WSDL_FILE=../echo.wsdl
16CMD1=wsdl2py
17OPTS1=-be -f
18CMD2=wsdl2dispatch
19OPTS2=-e -f
20
21
22STUB_FILE=EchoService_services_server.py
23TMP_FILE=EchoService_services_server.py.tmp
24
25ORIG1=from Echo_services import
26REPL1=from ndg.security.test.wsSecurity.server.Echo_services import
27
28generateStubs: ${WSDL_FILE}
29        @echo Generate stub ...
30        ${CMD1} ${OPTS1} ${WSDL_FILE}
31        ${CMD2} ${OPTS2} ${WSDL_FILE}
32        @echo Make substitutions for compatibility for correct NDG import ...
33        @cat ${STUB_FILE}|sed  s/"${ORIG1}"/"${REPL1}"/g > ${TMP_FILE}
34        @mv ${TMP_FILE} ${STUB_FILE}
35        @echo Done.
Note: See TracBrowser for help on using the repository browser.