diff --git a/README.md b/README.md index 9d4d9ec..c91ea3e 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,21 @@ More documentation of this is available in the [`misc/readmes/mapcreation.md`](misc/readmes/mapcreation.md) file. +### (Optional) Generate profile variants + +This repository holds examples of BRouter profiles for many different +transportation modes. Most of these can be easily customized by setting +variables in the first `global` context of the profiles files. + +An helper script is available in `misc/scripts/generate_profile_variants.sh` +to help you quickly generate variants based on the default profiles, to create +a default set of profiles covering most of the basic use cases. + +Have a look at the +[`misc/readmes/profile_developers_guide.txt`](misc/readmes/profile_developers_guide.txt) +for an in-depth guide on profiles edition and customization. + + ### Run the BRouter HTTP server Helpers scripts are provided in `misc/scripts/standalone` to quickly spawn a diff --git a/misc/profiles2/generate_profile_variants.sh b/misc/scripts/generate_profile_variants.sh similarity index 96% rename from misc/profiles2/generate_profile_variants.sh rename to misc/scripts/generate_profile_variants.sh index b502e4b..584de69 100755 --- a/misc/profiles2/generate_profile_variants.sh +++ b/misc/scripts/generate_profile_variants.sh @@ -1,4 +1,6 @@ #!/usr/bin/sh +cd "$(dirname "$0")" +cd ../profiles2 # Car variants sed -e "s/^assign[[:space:]]\+vmax.*\(#.*\)/assign vmax = 160 \1/" car-vario.brf > car-fast.brf