[Swift-commit] r2717 - provenancedb

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Sat Mar 21 03:57:08 CDT 2009


Author: benc
Date: 2009-03-21 03:57:07 -0500 (Sat, 21 Mar 2009)
New Revision: 2717

Modified:
   provenancedb/prov-sql-generate-transitive-closures.sh
   provenancedb/provenance.xml
Log:
Fix transitive closure script to figure out its own paths

Modified: provenancedb/prov-sql-generate-transitive-closures.sh
===================================================================
--- provenancedb/prov-sql-generate-transitive-closures.sh	2009-03-20 22:29:53 UTC (rev 2716)
+++ provenancedb/prov-sql-generate-transitive-closures.sh	2009-03-21 08:57:07 UTC (rev 2717)
@@ -13,15 +13,21 @@
 
 # 1b. execution dependency - tie-data-invocs
 
+PROVDIR=$(dirname $0)
+pushd $PROVDIR
+PROVDIR=$(pwd)
+popd
 
-$SQLCMD < prov-sql-generate-transitive-closures.sql 
+source $PROVDIR/etc/provenance.config
 
+$SQLCMD < $PROVDIR/prov-sql-generate-transitive-closures.sql 
+
 # 2. iteratively extend paths until there are no more to add.
 
 NEW=0
 
 while [ "$LAST" != "$NEW" ]; do
   LAST=$NEW
-  NEW=$($SQLCMD < prov-sql-iterate-transitive-closures.sql)
+  NEW=$($SQLCMD < $PROVDIR/prov-sql-iterate-transitive-closures.sql)
   echo Previous: $LAST   Now: $NEW
 done


Property changes on: provenancedb/prov-sql-generate-transitive-closures.sh
___________________________________________________________________
Name: svn:executable
   + *

Modified: provenancedb/provenance.xml
===================================================================
--- provenancedb/provenance.xml	2009-03-20 22:29:53 UTC (rev 2716)
+++ provenancedb/provenance.xml	2009-03-21 08:57:07 UTC (rev 2717)
@@ -645,10 +645,10 @@
 addition to the additional closures generated here.</para>
 
 <para>
-Prototype code: There is a script to generate the close of the preceeds
-relation and places it in a table called 'trans':
+Prototype code: There is a script called <literal>prov-sql-generate-transitive-closures.sh</literal> to generate the close of the preceeds
+relation and places it in a table called <literal>trans</literal>:
 <screen>
-$ ./prov-sql-generate-transitive-closures.sh 
+$ prov-sql-generate-transitive-closures.sh 
 Previous: 0 Now: 869
 Previous: 869 Now: 1077
 Previous: 1077 Now: 1251




More information about the Swift-commit mailing list