Fixed sge_common and merge script.

This commit is contained in:
Michael Herzberg 2017-07-31 14:21:57 +01:00
parent e94bb344d3
commit 4d0b2b5ec5
2 changed files with 4 additions and 3 deletions

View File

@ -8,15 +8,16 @@
# DBDIR base dir for the generated db files
# OUTDBPATH path containing the three-letter-dirs
# EXTENSIONCRAWLERPATH ExtensionCrawler git repo
set -u
DBDIR="$1"
OUTDBPATH="$2"
EXTENSIONCRAWLERDIR="$3"
source "$EXTENSIONCRAWLERDIR/scripts/sge_common"
load_python
override_vars
set -u
find "$DBDIR" -name "$(task_id_to_letter_256 $SGE_TASK_ID)*.sqlite" -print0 | while IFS= read -r -d '' file; do
DBNAME=$(basename "$file")
"$EXTENSIONCRAWLERDIR/scripts/merge_dbs" "$file" "$OUTDBPATH/${DBNAME:0:3}/$DBNAME"

View File

@ -18,5 +18,5 @@ function get_last_snapshot_dir {
function override_vars {
export PATH=~/bin:$PATH
export LD_LIBRARY_PATH=~/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=~/lib:${LD_LIBRARY_PATH:-}
}