diff options
author | Jochen Topf <jochen@topf.org> | 2012-01-23 10:11:14 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2012-01-23 10:11:14 +0100 |
commit | 7cc9439c8801147fee0dd554efb0d32403a7d4bc (patch) | |
tree | efe2e505acf92600b196e97cd83b981894d4c7c7 /sources/db | |
parent | 244f3543903141048d865946b8f4ebc950eddf64 (diff) | |
download | taginfo-7cc9439c8801147fee0dd554efb0d32403a7d4bc.tar taginfo-7cc9439c8801147fee0dd554efb0d32403a7d4bc.tar.gz |
Path to tagstats program now in main config
Diffstat (limited to 'sources/db')
-rwxr-xr-x | sources/db/update.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sources/db/update.sh b/sources/db/update.sh index 5c9a0c6..9831ff9 100755 --- a/sources/db/update.sh +++ b/sources/db/update.sh @@ -36,8 +36,7 @@ sqlite3 $DATABASE <../init.sql echo "`$DATECMD` Running pre.sql..." sqlite3 $DATABASE <pre.sql -echo "`$DATECMD` Running count... " - +echo "`$DATECMD` Running tagstats... " top=`../../bin/taginfo-config.rb geodistribution.top` right=`../../bin/taginfo-config.rb geodistribution.right` bottom=`../../bin/taginfo-config.rb geodistribution.bottom` @@ -45,8 +44,13 @@ left=`../../bin/taginfo-config.rb geodistribution.left` width=`../../bin/taginfo-config.rb geodistribution.width` height=`../../bin/taginfo-config.rb geodistribution.height` -#valgrind --leak-check=full --show-reachable=yes ./tagstats $PLANETFILE $DATABASE >valgrind.log 2>&1 -./tagstats -T $DIR/interesting_tags.lst --left=$left --bottom=$bottom --top=$top --right=$right --width=$width --height=$height $PLANETFILE $DATABASE +TAGSTATS=`../../bin/taginfo-config.rb sources.db.tagstats` +if [ "x" = "x$TAGSTATS" ]; then + TAGSTATS="./tagstats" +fi + +#TAGSTATS="valgrind --leak-check=full --show-reachable=yes $TAGSTATS" +$TAGSTATS -T $DIR/interesting_tags.lst --left=$left --bottom=$bottom --top=$top --right=$right --width=$width --height=$height $PLANETFILE $DATABASE echo "`$DATECMD` Running update_characters... " ./update_characters.pl $DIR |