#!/usr/bin/env bash # CUE4Parse (Apache-2.0, https://github.com/FabianFG/CUE4Parse) 를 고정 커밋으로 받아 vendor/ 에 둔다. # 발로란트 패치로 읽기가 깨지면 CUE4PARSE_COMMIT 을 새 커밋으로 올린다. set -euo pipefail CUE4PARSE_COMMIT="${CUE4PARSE_COMMIT:-605672df7a993a90094bad92d30c388d87ae6c1a}" here="$(cd "$(dirname "$0")" && pwd)" dst="$here/vendor/CUE4Parse" if [ ! -d "$dst/.git" ]; then git clone --quiet https://github.com/FabianFG/CUE4Parse "$dst" fi if [ "$(git -C "$dst" rev-parse HEAD)" != "$CUE4PARSE_COMMIT" ]; then git -C "$dst" fetch --quiet origin git -C "$dst" checkout --quiet --force "$CUE4PARSE_COMMIT" fi # 애니메이션(ACL 압축) 풀기에 쓰는 네이티브 라이브러리 소스 (헤더만) git -C "$dst" submodule update --quiet --init --recursive CUE4Parse-Natives/ACL/external/acl echo "CUE4Parse @ $(git -C "$dst" rev-parse --short HEAD)"