/
technologic
/
3d-adventure_next
Обзор
Документация
Войти
/
technologic
/
3d-adventure_next
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
env/setup.sh
41 строка
1 KB
iRoboco
Modify setup.sh to headers only
09 май 2026, 02:04
09 май 2026, 02:04
7c2520a
Код
Авторство
О чём код?
#!/bin/bash set -e AXMOL_VERSION="2.11.3" AXMOL_URL="https://github.com/axmolengine/axmol/archive/refs/tags/v${AXMOL_VERSION}.tar.gz" TMP_DIR="/tmp/axmol-download-$$" echo "Downloading Axmol ${AXMOL_VERSION} headers..." mkdir -p "$TMP_DIR" cd "$TMP_DIR" wget -q --show-progress "$AXMOL_URL" -O axmol.tar.gz tar -xzf axmol.tar.gz --wildcards "axmol-${AXMOL_VERSION}/core/**.h" "axmol-${AXMOL_VERSION}/core/**.hpp" "axmol-${AXMOL_VERSION}/extensions/**.h" "axmol-${AXMOL_VERSION}/extensions/**.hpp" 2>/dev/null || true # �������� ������ ��������� � ������ mkdir -p "$OLDPWD/axmol/include" cp -r "axmol-${AXMOL_VERSION}/core" "$OLDPWD/axmol/include/" cp -r "axmol-${AXMOL_VERSION}/extensions" "$OLDPWD/axmol/include/" 2>/dev/null || true cd "$OLDPWD" rm -rf "$TMP_DIR" # ��������� � .gitignore if [ ! -f .gitignore ]; then touch .gitignore fi if ! grep -Fxq "axmol/" .gitignore; then echo "axmol/" >> .gitignore fi # �������������: ���������� �� ���������� axmol �� ������ ������ if [ -d axmol ]; then touch axmol/.gitignore echo "*" > axmol/.gitignore echo "!.gitignore" >> axmol/.gitignore fi git add .gitignore 2>/dev/null || true echo "Axmol headers ready at $(pwd)/axmol/include"