-#/bin/bash -e
+#!/bin/bash -e
#
# Regenerates wkts for scenarios.
#
datadir="$( cd "$( dirname "$0" )" && cd ../data && pwd )"
-if [! -d "$datadir" ]; then
+if [ ! -d "$datadir" ]; then
echo "Cannot find data dir.";
exit -1;
fi
echo "Using datadir $datadir"
-pushd $datadir
+cd $datadir
# remove old wkts
-rm $datadir/*.wkt
+rm -f $datadir/*.wkt
# create wkts from SQL scripts
for fl in *.sql; do
echo "Processing $fl.."
../bin/osm2wkt $fl
done
-
-popd