diff --git a/Makefile b/Makefile index 28aa296..fc10607 100644 --- a/Makefile +++ b/Makefile @@ -58,8 +58,7 @@ convert: --family-id=${ID} \ --keep-going \ --read-config=optionsfile.args \ - --style-file=${STYLE} \ - --style=${STYLE} \ + --style-file=./${STYLE} \ --gmapsupp \ -c splitted/template.args ${STYLE}/${TYP} diff --git a/update_bin.sh b/update_bin.sh index e46b893..40e59fc 100755 --- a/update_bin.sh +++ b/update_bin.sh @@ -8,6 +8,7 @@ osmosis_url='http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tg update_dist() { dist_url=$1 + tmp_suffix=$2 dist_file=`basename $dist_url` remote_size=`wget --spider --server-response $dist_url -O - 2>&1 | sed -ne '/Content-Length/{s/.*: //;p}'` if [ -e $dist_file ]; then @@ -19,14 +20,15 @@ update_dist() { rm -f $dist_file wget -c $dist_url fi - tar xfz $dist_file -C tmp + mkdir -p tmp/${tmp_suffix} + tar xfz $dist_file -C tmp/${tmp_suffix} } mkdir -p tmp -update_dist $mkgmap_url -update_dist $splitter_url -update_dist $osmosis_url +update_dist ${mkgmap_url} +update_dist ${splitter_url} +update_dist ${osmosis_url} osmosis-latest mkdir -p contrib