[Volute] r3941 - trunk/projects/dm/vo-dml/models/tesselation/scripts

Volute commit messages volutecommits at g-vo.org
Wed Apr 12 14:00:01 CEST 2017


Author: lmichel
Date: Wed Apr 12 14:00:01 2017
New Revision: 3941

Log:
Add comments

Modified:
   trunk/projects/dm/vo-dml/models/tesselation/scripts/builModel.bash
   trunk/projects/dm/vo-dml/models/tesselation/scripts/buildModelDoc.bash

Modified: trunk/projects/dm/vo-dml/models/tesselation/scripts/builModel.bash
==============================================================================
--- trunk/projects/dm/vo-dml/models/tesselation/scripts/builModel.bash	Wed Apr 12 13:48:50 2017	(r3940)
+++ trunk/projects/dm/vo-dml/models/tesselation/scripts/builModel.bash	Wed Apr 12 14:00:01 2017	(r3941)
@@ -1,4 +1,10 @@
 #!/bin/bash
+# This script transforms an XMI file generated by Modelio 3.5 in a valide vo-dml file.
+# - The XMI file has to be copied in $xmiDir
+# - All output files are stored in $xmiDir
+# The output vo-dml file is always named as modelname.vo-dml.xml whatever the name of the XMI file is
+#
+# Lauren MICHEL - 04/2017
 
 #
 # Global resources
@@ -15,7 +21,7 @@
 #
 if [ $# != 1 ] 
 then
-	echo USAGE buildModel [model prefix]
+	echo USAGE buildModel [XMI file prefix]
 	exit 1
 fi
 #
@@ -30,6 +36,9 @@
 	exit 1
 fi
 
+#
+# Run the transformation
+#
 ant -Dmodels=$modelDir -Dmodel=$modelDir -Dxmi.source=$xmiDir/$1.xmi -Dxslt=$rootDir/xslt \
     -Dvodml.model=$modelDir/$lcModel.vo-dml.xml -f $antDir/build.xml xmi2vo-dml_Modelio_UML2.4.1
 

Modified: trunk/projects/dm/vo-dml/models/tesselation/scripts/buildModelDoc.bash
==============================================================================
--- trunk/projects/dm/vo-dml/models/tesselation/scripts/buildModelDoc.bash	Wed Apr 12 13:48:50 2017	(r3940)
+++ trunk/projects/dm/vo-dml/models/tesselation/scripts/buildModelDoc.bash	Wed Apr 12 14:00:01 2017	(r3941)
@@ -1,9 +1,13 @@
 #!/bin/bash
+# This script generates the hypertext documentation of a mode from the vo-dml.xml file.
+# - The modelname.vo-dml.xml file has to be in $xmiDir
+# - All output files are stored in $xmiDir
+#
+# Lauren MICHEL - 04/2017
 
 #
 # Global resources
-#
-rootDir=/home/michel/vodml/testbench
+#rootDir=/home/michel/vodml/testbench
 xmiDir=$rootDir/models
 xsltDir=$rootDir/xslt
 modelDir=$rootDir/models
@@ -22,7 +26,11 @@
 # Setup of XMI file access
 #
 #lcModel=`echo "${1,,}"`
+# The model name is always in lowercase
 lcModel=$1
+#
+# Run the transformation
+#
 ant -Dmodels=$modelDir -Dmodel=$modelDir -Dgraphviz.path=$graphvizPath \
     -Dvodml.model=$modelDir/$lcModel.vo-dml.xml \
     -Dmodelname=$1 -Dxslt=$xsltDir -f $antDir/build.xml vo-dml2html


More information about the Volutecommits mailing list