Author: nunofsantos
Date: 2007-11-16 14:53:44 -0500 (Fri, 16 Nov 2007)
New Revision: 1326
Added:
mgmt/mint/bin/parse
Removed:
mgmt/mint/parse
Log:
moved parse script to bin directory
Copied: mgmt/mint/bin/parse (from rev 1325, mgmt/mint/parse)
===================================================================
--- mgmt/mint/bin/parse (rev 0)
+++ mgmt/mint/bin/parse 2007-11-16 19:53:44 UTC (rev 1326)
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+# generate Python
+echo "Generating Python code..."
+python -c "
+from schemaparser import *
+parser = SchemaParser()
+parser.generateCode()
+"
+
+# generate SQL
+echo "Generating SQL code..."
+
+SQLOUTPUT=schema.sql
+
+PYTHONPATH=. sqlobject-admin sql -m schema > $SQLOUTPUT
+RESULT=`grep "circular reference" $SQLOUTPUT | wc -l`
+if [[ $RESULT -gt 0 ]]; then
+ mv $SQLOUTPUT $SQLOUTPUT.1
+ tail -n+3 $SQLOUTPUT.1 > $SQLOUTPUT
+ rm $SQLOUTPUT.1
+fi
+
+echo "Done."
Deleted: mgmt/mint/parse
===================================================================
--- mgmt/mint/parse 2007-11-16 19:50:33 UTC (rev 1325)
+++ mgmt/mint/parse 2007-11-16 19:53:44 UTC (rev 1326)
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-# generate Python
-echo "Generating Python code..."
-python -c "
-from schemaparser import *
-parser = SchemaParser()
-parser.generateCode()
-"
-
-# generate SQL
-echo "Generating SQL code..."
-
-SQLOUTPUT=schema.sql
-
-PYTHONPATH=. sqlobject-admin sql -m schema > $SQLOUTPUT
-RESULT=`grep "circular reference" $SQLOUTPUT | wc -l`
-if [[ $RESULT -gt 0 ]]; then
- mv $SQLOUTPUT $SQLOUTPUT.1
- tail -n+3 $SQLOUTPUT.1 > $SQLOUTPUT
- rm $SQLOUTPUT.1
-fi
-
-echo "Done."
Show replies by date