forked from organicmaps/organicmaps
[generator][linux] Fixed boost::program_options issue in OSRM with '&' symbol
This commit is contained in:
parent
a3b6fe54e1
commit
51de7d254b
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue