[Swift-commit] r2669 - provenancedb

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Mar 9 11:17:17 CDT 2009


Author: benc
Date: 2009-03-09 11:17:16 -0500 (Mon, 09 Mar 2009)
New Revision: 2669

Modified:
   provenancedb/import-all
Log:
fixed to import-all based on discussion with
Luiz M. R. Gadelha Jr. <lgadelha at lncc.br>

Modified: provenancedb/import-all
===================================================================
--- provenancedb/import-all	2009-03-09 16:16:38 UTC (rev 2668)
+++ provenancedb/import-all	2009-03-09 16:17:16 UTC (rev 2669)
@@ -1,13 +1,15 @@
 #!/bin/bash
 
+PROVDIR=$(pwd)/$(dirname $0)/
+
 # we need to keep this out of the log-proceesing dir because import
 # of individual runs will clean other files.
 
 source paths.source
-export PATH=$LOGDIR:$PATH
+export PATH=$LOGDIR:$PROVDIR:$PATH
 
 pushd $LOGDIR
-./create-everylog-vs-versions-data $LOGREPO
+create-everylog-vs-versions-data $LOGREPO
 popd
 
 
@@ -18,7 +20,7 @@
 echo first commandline param is $1
 if [ "$1" == "rebuild" ]; then
   echo CLEANING DATABASE
-  $SQLCMD < prov-init.sql
+  $SQLCMD < $PROVDIR/prov-init.sql
 fi
 
 while read start version filename; do
@@ -37,9 +39,9 @@
 
    echo version $version in log file $filename
      echo ============= will import =============
-     ./prepare-for-import $filename
-     ./import-run-to-sql $filename
-#     ./import-run-to-xml $filename
+     prepare-for-import $filename
+     import-run-to-sql $filename
+#     import-run-to-xml $filename
      $SQLCMD -c "INSERT INTO known_workflows (workflow_log_filename, version, importstatus) VALUES ('$filename','$version','imported');"
    else
      echo SKIP: Workflow does not report successful end.




More information about the Swift-commit mailing list