[generator] Auto update country sizes and external resources

This commit is contained in:
MapsWithMe OSM User 2013-05-28 02:33:30 +02:00 committed by Alex Zolotarev
parent 59247603f3
commit 90ce047e06
2 changed files with 23 additions and 2 deletions

View file

@ -0,0 +1,14 @@
#!/bin/bash
FILES=( World.mwm \
WorldCoasts.mwm \
01_dejavusans.ttf \
02_wqy-microhei.ttf \
03_jomolhari-id-a3d.ttf \
04_padauk.ttf \
05_khmeros.ttf \
06_code2000.ttf )
for file in ${FILES[*]}; do
stat -c "%n %s" $file
done

View file

@ -125,8 +125,8 @@ else
fi
fi
# need link to generated coastlines file
ln -s -f $INTCOASTSDIR/WorldCoasts.mwm.tmp $INTDIR/WorldCoasts.mwm.tmp
# make a working copy of generated coastlines file
cp $INTCOASTSDIR/WorldCoasts.mwm.tmp $INTDIR/WorldCoasts.mwm.tmp
if [[ $1 == "--generate" || $1 == "--full" ]]; then
@ -174,4 +174,11 @@ if [[ $1 == "--generate" || $1 == "--continue" || $1 == "--full" ]]; then
# Generate search index for World
$GENERATOR_TOOL -data_path=$DATA_PATH -generate_search_index -output=World
# Update countries list
$GENERATOR_TOOL -generate_update
# Update external resources
pushd $DATA_PATH
$MY_PATH/external_resources.sh > external_resources.txt
popd
fi