summaryrefslogtreecommitdiffstats
path: root/generate.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2022-05-03 07:06:20 +0400
committerSuren A. Chilingaryan <csa@suren.me>2022-05-03 07:06:20 +0400
commit90d1bf5893a9a373eccd40693f801aa74c3ad36b (patch)
tree3a6574b7299fcffdb5d52d47d59ec3d3832486d6 /generate.sh
parent682b308d8a7804d0ae2b2606b3ba0ff8814c1473 (diff)
downloadopenmtbmap-90d1bf5893a9a373eccd40693f801aa74c3ad36b.tar.gz
openmtbmap-90d1bf5893a9a373eccd40693f801aa74c3ad36b.tar.bz2
openmtbmap-90d1bf5893a9a373eccd40693f801aa74c3ad36b.tar.xz
openmtbmap-90d1bf5893a9a373eccd40693f801aa74c3ad36b.zip
Regularly update cookie jar; update map paths; include gpx scripts
Diffstat (limited to 'generate.sh')
-rwxr-xr-xgenerate.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/generate.sh b/generate.sh
index 721e09d..ae4fdad 100755
--- a/generate.sh
+++ b/generate.sh
@@ -28,7 +28,6 @@ if [[ "$file" =~ "velo" ]]; then
name=`basename $file .exe | cut -c 5-`
img=maps/velo-$name.img
else
- typ=thin*.TYP
name=`basename $file .exe | cut -c 4-`
img=maps/mtb-$name.img
fi
@@ -41,8 +40,8 @@ fi
prepare $file
if [ ! -f work/$typ ]; then
- echo "Type file is not found, failing out..."
- exit 1
+ [ -f work/clas*.TYP ] && typ=clas*.TYP
+ [ -z "$typ" ] && { echo "TYP file is not found (might be naming changed again, check in workdir), failing out..."; exit 1; }
fi
id=`ls work/6*.img | head -n 1 | cut -c 6-9`