[generator][linux] Fixed boost::program_options issue in OSRM with '&' symbol

This commit is contained in:
Alex Zolotarev 2014-09-30 20:54:22 -07:00 committed by Alex Zolotarev
parent a3b6fe54e1
commit 51de7d254b

View file

@ -28,9 +28,13 @@ echo Started at `date`
for file in "$DATA_PATH"/*.pbf
do
"$EXTRACT" --config "$EXTRACT_CFG" --profile "$PROFILE" "\"$file\""
"$PREPARE" --config "$PREPARE_CFG" --profile "$PROFILE" "\"${file/\.*/\.osrm}\""
"$MWM" -i "${file/\.*/\.osrm}"
# hack to fix boost options bug with spaces and & symbols
FILE_SPACES="${file/ /\ }"
FILE="${FILE_SPACES/&/\&\&}"
"$EXTRACT" --config "$EXTRACT_CFG" --profile "$PROFILE" "\"$FILE\""
"$PREPARE" --config "$PREPARE_CFG" --profile "$PROFILE" "\"${FILE/\.*/\.osrm}\""
FILE="${FILE_SPACES/&/\&}"
"$MWM" -i "${FILE/\.*/\.osrm}"
done
#popd