summaryrefslogtreecommitdiff
path: root/convert
diff options
context:
space:
mode:
Diffstat (limited to 'convert')
-rwxr-xr-xconvert51
1 files changed, 38 insertions, 13 deletions
diff --git a/convert b/convert
index 75598f6..e9fb673 100755
--- a/convert
+++ b/convert
@@ -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