aboutsummaryrefslogtreecommitdiff
path: root/sources/db
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2011-10-12 19:47:43 +0200
committerJochen Topf <jochen@topf.org>2011-10-12 19:47:43 +0200
commitc4fe6f764a8ed74c4500993b5b62853c4bcdec4e (patch)
treeb0c98239f8c3d991e6c5f1a7eea2f092b0801844 /sources/db
parent37cdf05ea821f39f69ca023e9a4c02680bb772e4 (diff)
downloadtaginfo-c4fe6f764a8ed74c4500993b5b62853c4bcdec4e.tar
taginfo-c4fe6f764a8ed74c4500993b5b62853c4bcdec4e.tar.gz
Add config for distribution images.
New config options for the geographic distribution images.
Diffstat (limited to 'sources/db')
-rwxr-xr-xsources/db/update.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/sources/db/update.sh b/sources/db/update.sh
index 19d3518..4d10894 100755
--- a/sources/db/update.sh
+++ b/sources/db/update.sh
@@ -38,10 +38,18 @@ echo "`$DATECMD` Running pre.sql..."
sqlite3 $DATABASE <pre.sql
echo "`$DATECMD` Running count... "
+
+top=`../../bin/taginfo-config.rb geodistribution.top`
+right=`../../bin/taginfo-config.rb geodistribution.right`
+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`
+
HERE=`pwd`
cd $DIR
#valgrind --leak-check=full --show-reachable=yes $HERE/tagstats $PLANETFILE >valgrind.log 2>&1
-$HERE/tagstats $PLANETFILE
+$HERE/tagstats --left=$left --bottom=$bottom --top=$top --right=$right --width=$width --height=$height $PLANETFILE
cd $HERE
echo "`$DATECMD` Running update_characters... "