Author: nunofsantos
Date: 2008-05-08 18:32:13 -0400 (Thu, 08 May 2008)
New Revision: 2020
Modified:
mgmt/mint/Makefile
Log:
generate python from store xml schema, if STORE_SCHEMA_XML is defined; skip otherwise
Modified: mgmt/mint/Makefile
===================================================================
--- mgmt/mint/Makefile 2008-05-08 22:09:09 UTC (rev 2019)
+++ mgmt/mint/Makefile 2008-05-08 22:32:13 UTC (rev 2020)
@@ -28,6 +28,7 @@
schema-python:
@if [ -z "$$MINT_SCHEMA_XML" ]; then echo "MINT_SCHEMA_XML is not
set"; exit 1; fi
python python/mint/schemaparser.py ${MINT_SCHEMA_XML} python/mint/schema.py ${dsn}
+ @if [ -z "$$STORE_SCHEMA_XML" ]; then echo "Warning: STORE_SCHEMA_XML is
not set, skipping store schema generation"; else python python/mint/schemaparser.py
${STORE_SCHEMA_XML} python/mint/schema-store.py ${dsn}; cat python/mint/schema-store.py
>> python/mint/schema.py; fi
schema-sql:
sqlobject-admin sql -m mint -m mint.schema -c ${dsn} | sed -e '1,2d' >
sql/schema.sql