[Swift-commit] r2695 - provenancedb

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Mar 16 13:19:29 CDT 2009


Author: benc
Date: 2009-03-16 13:19:28 -0500 (Mon, 16 Mar 2009)
New Revision: 2695

Modified:
   provenancedb/swift-about-dataset
   provenancedb/swift-about-execution
   provenancedb/swift-about-filename
   provenancedb/swift-prov-import-all-logs
Log:
better detection of PROVDIR

Modified: provenancedb/swift-about-dataset
===================================================================
--- provenancedb/swift-about-dataset	2009-03-16 18:18:18 UTC (rev 2694)
+++ provenancedb/swift-about-dataset	2009-03-16 18:19:28 UTC (rev 2695)
@@ -1,6 +1,9 @@
 #!/bin/bash
 
-PROVDIR=$(pwd)/$(dirname $0)/
+PROVDIR=$(dirname $0)
+pushd $PROVDIR
+PROVDIR=$(pwd)
+popd
 source $PROVDIR/etc/provenance.config
 
 ID=$1

Modified: provenancedb/swift-about-execution
===================================================================
--- provenancedb/swift-about-execution	2009-03-16 18:18:18 UTC (rev 2694)
+++ provenancedb/swift-about-execution	2009-03-16 18:19:28 UTC (rev 2695)
@@ -1,6 +1,10 @@
 #!/bin/bash
 
-PROVDIR=$(pwd)/$(dirname $0)/
+PROVDIR=$(dirname $0)
+pushd $PROVDIR
+PROVDIR=$(pwd)
+popd
+
 source $PROVDIR/etc/provenance.config
 
 EXECUTEID=$1

Modified: provenancedb/swift-about-filename
===================================================================
--- provenancedb/swift-about-filename	2009-03-16 18:18:18 UTC (rev 2694)
+++ provenancedb/swift-about-filename	2009-03-16 18:19:28 UTC (rev 2695)
@@ -1,6 +1,10 @@
 #!/bin/bash
 
-PROVDIR=$(pwd)/$(dirname $0)/
+PROVDIR=$(dirname $0)
+pushd $PROVDIR
+PROVDIR=$(pwd)
+popd
+
 source $PROVDIR/etc/provenance.config
 
 FILENAME="file://localhost/$1"

Modified: provenancedb/swift-prov-import-all-logs
===================================================================
--- provenancedb/swift-prov-import-all-logs	2009-03-16 18:18:18 UTC (rev 2694)
+++ provenancedb/swift-prov-import-all-logs	2009-03-16 18:19:28 UTC (rev 2695)
@@ -1,6 +1,9 @@
 #!/bin/bash
 
-PROVDIR=$(pwd)/$(dirname $0)/
+PROVDIR=$(dirname $0)
+pushd $PROVDIR
+PROVDIR=$(pwd)
+popd
 
 # we need to keep this out of the log-proceesing dir because import
 # of individual runs will clean other files.




More information about the Swift-commit mailing list