aboutsummaryrefslogtreecommitdiff
path: root/sources/db
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-10-07 18:36:15 +0200
committerJochen Topf <jochen@topf.org>2013-10-07 18:36:15 +0200
commita1d5747cfd8144da30b42054a6587377736a6ed3 (patch)
tree00efb5a00a5ca7116cbf38a41f31b81af9dbebbf /sources/db
parentc16b94047a36a6738c6f95eb24deddf6519cd1af (diff)
downloadtaginfo-a1d5747cfd8144da30b42054a6587377736a6ed3.tar
taginfo-a1d5747cfd8144da30b42054a6587377736a6ed3.tar.gz
Make min_tag_combination_count configurable at runtime
Diffstat (limited to 'sources/db')
-rwxr-xr-xsources/db/update.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/db/update.sh b/sources/db/update.sh
index 1f00088..71abd9d 100755
--- a/sources/db/update.sh
+++ b/sources/db/update.sh
@@ -43,6 +43,7 @@ bottom=`../../bin/taginfo-config.rb geodistribution.bottom`
left=`../../bin/taginfo-config.rb geodistribution.left`
width=`../../bin/taginfo-config.rb geodistribution.width`
height=`../../bin/taginfo-config.rb geodistribution.height`
+min_tag_combination_count=`../../bin/taginfo-config.rb sources.master.min_tag_combination_count 1000`
TAGSTATS=`../../bin/taginfo-config.rb sources.db.tagstats`
if [ "x" = "x$TAGSTATS" ]; then
@@ -50,7 +51,7 @@ if [ "x" = "x$TAGSTATS" ]; then
fi
#TAGSTATS="valgrind --leak-check=full --show-reachable=yes $TAGSTATS"
-$TAGSTATS --tags $DIR/interesting_tags.lst --relation-types $DIR/interesting_relation_types.lst --left=$left --bottom=$bottom --top=$top --right=$right --width=$width --height=$height $PLANETFILE $DATABASE
+$TAGSTATS --tags $DIR/interesting_tags.lst --min-tag-combination-count=$min_tag_combination_count --relation-types $DIR/interesting_relation_types.lst --left=$left --bottom=$bottom --top=$top --right=$right --width=$width --height=$height $PLANETFILE $DATABASE
echo "`$DATECMD` Running update_characters... "
./update_characters.rb $DIR