-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.sh
executable file
·103 lines (100 loc) · 3.97 KB
/
env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#!/bin/bash
if [ -f /mnt/c/Users/Markus/AppData/Roaming/GSAK8/data/Default/sqlite.db3 ]
then
# Seems we are on Gala using WSL1
export BASE=/mnt/c/src/Kotlin/gsak2gpx
export DB=/mnt/c/Users/Markus/AppData/Roaming/GSAK8/data/Default/sqlite.db3
# export DB=/tmp/sqlite.db3
# export DB2=/mnt/c/Users/Markus/AppData/Roaming/GSAK8/data/RoadTrip/sqlite.db3
# export DB=/mnt/c/Users/Markus/AppData/Roaming/GSAK8/data/Test/sqlite.db3
export FOUND_DB=/mnt/c/Users/Markus/AppData/Roaming/GSAK8/data.old/Found/sqlite.db3
export SQL_EXT=/mnt/c/src/cygwin/sqlitefunctions/libsqlitefunctions
export ICON_PATH=/mnt/c/Users/Markus/AppData/Roaming/GSAK8/Sygic/Icons
export CYG2DOS="echo "
# export CYG2DOS="wslpath -w "
export SYNCTHING_KEY="oxxZbivHdtmzKHYbwS2vFwSSGQJQPUfM"
export SYGIC_PATH=/mnt/c/Users/Markus/Sync/Sygic/rupi
DATE=date
TASKS=8
export GSAK8_INST=/cygdrive/c/Geo/GSAK8
export GPSBABEL=/usr/bin/gpsbabel
export GPIGEN=/mnt/c/Users/Markus/AppData/Roaming/GSAK8/GPIGen1.2.0/gpigen.exe
# export PATH=/cygdrive/c/Users/Markus/Programme/graalvm-ee-java11-19.3.0/bin:$PATH
# export PATH=/mnt/c/Program\ Files/Java/jdk-13.0.1/bin:$PATH
export PATH=/opt/graalvm/bin:$PATH
# export JAVA="java.exe"
export JAVA=java
elif [ -f /cygdrive/c/Users/Markus/AppData/Roaming/GSAK8/data/Default/sqlite.db3 ]
then
# Seems we are on Gala using Cygwin
export BASE=/cygdrive/c/src/Kotlin/gsak2gpx
export DB=/cygdrive/c/Users/Markus/AppData/Roaming/GSAK8/data/Default/sqlite.db3
# export DB2=/cygdrive/c/Users/Markus/AppData/Roaming/GSAK8/data/RoadTrip/sqlite.db3
# export DB=/cygdrive/c/Users/Markus/AppData/Roaming/GSAK8/data/Test/sqlite.db3
export FOUND_DB=/cygdrive/c/Users/Markus/AppData/Roaming/GSAK8/data.old/Found/sqlite.db3
export SQL_EXT=/cygdrive/c/src/cygwin/sqlitefunctions/libsqlitefunctions.dll
export ICON_PATH=/cygdrive/c/Users/Markus/AppData/Roaming/GSAK8/Sygic/Icons
export CYG2DOS="cygpath -w "
export SYNCTHING_KEY="oxxZbivHdtmzKHYbwS2vFwSSGQJQPUfM"
export SYGIC_PATH=/cygdrive/c/Users/Markus/Sync/Sygic/rupi
DATE=date
TASKS=8
export GSAK8_INST=/cygdrive/c/Geo/GSAK8
export GPSBABEL=$GSAK8_INST/gpsbabel.exe
# export PATH=/cygdrive/c/Users/Markus/Programme/graalvm-ee-java11-19.3.0/bin:$PATH
export JAVA=java
elif [ -f /home/mbu/GSAK8/data/Default/sqlite.db3 ]
then
# Seems we are on N042/N020
export BASE=/home/mbu/src/gsak2gpx
export DB=/home/mbu/GSAK8/data/Default/sqlite.db3
export SQL_EXT=/home/mbu/src/gsak2gpx/lib/libsqlitefunctions
export ICON_PATH=/home/mbu/src/gsak2gpx/Icons
export CYG2DOS="echo "
export SYGIC_PATH=$HOME/Sync/Sygic/rupi
DATE=date
TASKS=2
export GPSBABEL=~/bin/gpsbabel
export JAVA=java
else
# Seems we are on the Mac
export BASE=/Users/mbu/src/gsak2gpx
export DB=/Users/mbu/ExtDisk/Geo/GSAK8/data/Default/sqlite.db3
export SQL_EXT=/Users/mbu/src/gsak2gpx/lib/libsqlitefunctions.dylib
export ICON_PATH=/Users/mbu/ExtDisk/Geo/GSAK8/Sygic/Icons
export CYG2DOS="echo "
export SYNCTHING_KEY="2TGSSVxpbaogJ5rQ7hAajHk6ebfUQGRf"
export SYGIC_PATH=$HOME/Sync/Sygic/rupi
DATE=gdate
TASKS=6
export GPSBABEL=~/bin/gpsbabel
export JAVA=java
fi
# Die zu verwendente sqlite Version
#SQLITE=/home/mbu/bin/sqlite3
#SQLITE=/usr/bin/sqlite3
SQLITE=sqlite3
# export GPSBABEL=/usr/local/bin/gpsbabel
export CAT_PATH="categories/ggz categories/cachepoi categories/attributepoi categories/include"
export OUT_PATH=output
export GGZ_PATH=$OUT_PATH/ggz
export GPI_PATH=$OUT_PATH/gpi
export FENIX_PATH=$OUT_PATH/fenix
export POIGPX_PATH=$OUT_PATH/cachepoi
export GGZGPX_PATH=$OUT_PATH/gpx
export RUPI_PATH=$OUT_PATH/rupi
export SYGIC_R7D7_PATH=$OUT_PATH/SygicR7D7
export SYGIC_R8D8_PATH=$OUT_PATH/SygicR8D8
export CSV_PATH=$OUT_PATH/csv
export JAR=build/libs/gsak2gpx-1.4.4-all.jar
export RUPI_JAR=../rupi/build/libs/rupi-1.2.4-all.jar
mkdir -p $OUT_PATH
mkdir -p $GGZ_PATH
mkdir -p $GPI_PATH
mkdir -p $FENIX_PATH
mkdir -p $POIGPX_PATH
mkdir -p $GGZGPX_PATH
mkdir -p $RUPI_PATH
mkdir -p $CSV_PATH
mkdir -p $SYGIC_R7D7_PATH
mkdir -p $SYGIC_R8D8_PATH