mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-04 11:53:47 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
30
tools/unix/find_generator_tool.sh
Executable file
30
tools/unix/find_generator_tool.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
#####################################
|
||||
# Locates generator_tool executable #
|
||||
#####################################
|
||||
|
||||
# Set GENERATOR_TOOL to explicitly use one
|
||||
# Or BUILD_PATH to point to a build directory
|
||||
|
||||
OMIM_PATH="${OMIM_PATH:-$(cd "$(dirname "$0")/../.."; pwd)}"
|
||||
|
||||
if [ -z "${GENERATOR_TOOL-}" -o ! -x "${GENERATOR_TOOL-}" ]; then
|
||||
IT_PATHS_ARRAY=()
|
||||
for i in "${BUILD_PATH-}" "$OMIM_PATH" "$OMIM_PATH/.."/*omim*elease* "$OMIM_PATH/.."/*omim*ebug; do
|
||||
IT_PATHS_ARRAY+=("$i/generator_tool")
|
||||
done
|
||||
|
||||
if [ -d "$OMIM_PATH/../omim-xcode-build" ]; then
|
||||
IT_PATHS_ARRAY+=("$OMIM_PATH/../omim-xcode-build/Release" "$OMIM_PATH/../omim-xcode-build/Debug")
|
||||
fi
|
||||
|
||||
for i in "${BUILD_PATH:+$BUILD_PATH/generator_tool}" "${IT_PATHS_ARRAY[@]}"; do
|
||||
if [ -x "$i" ]; then
|
||||
GENERATOR_TOOL="$i"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
[ -z "${GENERATOR_TOOL-}" -o ! -x "${GENERATOR_TOOL-}" ] && fail "No generator_tool found in ${IT_PATHS_ARRAY[*]-${GENERATOR_TOOL-}}"
|
||||
echo "Using tool: $GENERATOR_TOOL"
|
||||
Reference in New Issue
Block a user