[Swift-commit] r2213 - provenancedb
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Fri Sep 5 07:28:42 CDT 2008
Author: benc
Date: 2008-09-05 07:28:41 -0500 (Fri, 05 Sep 2008)
New Revision: 2213
Modified:
provenancedb/import-all
provenancedb/import-ci
Log:
PROVDB env variable to allow script to use different databases
Modified: provenancedb/import-all
===================================================================
--- provenancedb/import-all 2008-09-05 12:19:22 UTC (rev 2212)
+++ provenancedb/import-all 2008-09-05 12:28:41 UTC (rev 2213)
@@ -3,8 +3,10 @@
# we need to keep this out of the log-proceesing dir because import
# of individual runs will clean other files.
+PROVDB=provdb
source paths.source
+
pushd $LOGDIR
./create-everylog-vs-versions-data $LOGREPO
popd
@@ -24,7 +26,7 @@
if [ $version -ge 1538 ]; then
echo -n "Log: $filename ... "
-EXISTING=$(psql -p 5435 -d provdb -U benc --tuples-only -c "select count(*) from known_workflows where workflow_log_filename='$filename';")
+EXISTING=$(psql -p 5435 -d $PROVDB -U benc --tuples-only -c "select count(*) from known_workflows where workflow_log_filename='$filename';")
# echo EXISTING is X${EXISTING}X
if [ $EXISTING -eq 0 ]; then
Modified: provenancedb/import-ci
===================================================================
--- provenancedb/import-ci 2008-09-05 12:19:22 UTC (rev 2212)
+++ provenancedb/import-ci 2008-09-05 12:28:41 UTC (rev 2213)
@@ -1,4 +1,12 @@
#!/bin/bash
+
+if [ "X$PROVDB" == "X" ]; then
+ echo PROVDB is not set. Defaulting to provdb
+ export PROVDB=provdb
+else
+ echo PROVDB is set to $PROVDB
+fi
+
cd /home/benc/swift-svn/provenancedb
./import-all $@
More information about the Swift-commit
mailing list