mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-13 11:12:14 +00:00
Key benefits of the new mapmerge include: multi-Z support, effective reuse of deleted keys, automatic handling of key overflow, and utilizing a git pre-commit hook to eliminate the need to run batch files manually.
18 lines
363 B
Bash
18 lines
363 B
Bash
#!/bin/bash
|
|
set -e
|
|
if command -v python3 >/dev/null 2>&1; then
|
|
PY=python3
|
|
else
|
|
PY=python
|
|
fi
|
|
PATHSEP=$($PY - <<'EOF'
|
|
import sys, os
|
|
if sys.version_info.major != 3 or sys.version_info.minor < 6:
|
|
sys.stderr.write("Python 3.6+ is required: " + sys.version + "\n")
|
|
exit(1)
|
|
print(os.pathsep)
|
|
EOF
|
|
)
|
|
export PYTHONPATH=tools/mapmerge2/${PATHSEP}${PYTHONPATH}
|
|
$PY "$@"
|