Fixed files with spaces in build script

This commit is contained in:
Alex Zolotarev 2011-01-28 21:40:54 +01:00 committed by Alex Zolotarev
parent b38b92a5b2
commit 8ad9488d67

View file

@ -122,11 +122,11 @@ $PV $OSM_BZ2 | bzip2 -d | $INDEXER_TOOL --intermediate_data_path=$TMPDIR \
# 3rd pass - do in parallel
for file in $DATA_PATH/*.mwm; do
if [ $file != "minsk-pass" ]; then
filename=$(basename $file)
extension=${filename##*.}
filename=${filename%.*}
$INDEXER_TOOL --data_path=$DATA_PATH --generate_geometry --sort_features --generate_index --output=$filename &
if [ "$file" != "minsk-pass" ]; then
filename=$(basename "$file")
extension="${filename##*.}"
filename="${filename%.*}"
$INDEXER_TOOL -output="$filename" -data_path=$DATA_PATH -generate_geometry -sort_features -generate_index -intermediate_data_path=$TMPDIR &
forky $PROCESSORS
fi
done