diff options
-rwxr-xr-x | convert | 51 |
1 files changed, 38 insertions, 13 deletions
@@ -9,19 +9,44 @@ then fi mainUrl='https://download.geofabrik.de/europe/' -countries=( - austria - belgium - croatia - czech-republic - germany - italy - luxembourg - netherlands - poland - slovakia - slovenia -) + +case "$1" in + '') + countries=( + austria + germany + italy + switzerland + ) + ;; + 'benelux') + countries=( + belgium + luxembourg + netherlands + ) + ;; + 'fast') + mainUrl="${mainUrl}germany/" + countries=( + thueringen + ) + ;; + 'gus') + countries=( + croatia + czech-republic + poland + slovakia + slovenia + ) + ;; + *) + >&2 printf 'Unknown option "%s".\n' "$1" + exit 1 + ;; +esac + numJobs=$(($(/usr/bin/getconf _NPROCESSORS_ONLN)/2)) if [ ${numJobs} -lt 1 ] then |