1 Star 0 Fork 16

tanshinotsubasa / unreal-engine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Setup.sh 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
tungprocity 提交于 2018-03-07 12:49 . Content Engine And Setup File
#!/bin/bash
# Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
set -e
cd "`dirname "$0"`"
if [ ! -f Engine/Binaries/DotNET/GitDependencies.exe ]; then
echo "GitSetup ERROR: This script does not appear to be located \
in the root UE4 directory and must be run from there."
exit 1
fi
if [ "$(uname)" = "Darwin" ]; then
# Setup the git hooks
if [ -d .git/hooks ]; then
echo "Registering git hooks... (this will override existing ones!)"
rm -f .git/hooks/post-checkout
rm -f .git/hooks/post-merge
ln -s ../../Engine/Build/BatchFiles/Mac/GitDependenciesHook.sh .git/hooks/post-checkout
ln -s ../../Engine/Build/BatchFiles/Mac/GitDependenciesHook.sh .git/hooks/post-merge
fi
# Get the dependencies for the first time
Engine/Build/BatchFiles/Mac/GitDependencies.sh --prompt $@
else
# Setup the git hooks
if [ -d .git/hooks ]; then
echo "Registering git hooks... (this will override existing ones!)"
echo \#!/bin/sh >.git/hooks/post-checkout
echo Engine/Build/BatchFiles/Linux/GitDependencies.sh >>.git/hooks/post-checkout
chmod +x .git/hooks/post-checkout
echo \#!/bin/sh >.git/hooks/post-merge
echo Engine/Build/BatchFiles/Linux/GitDependencies.sh >>.git/hooks/post-merge
chmod +x .git/hooks/post-merge
fi
pushd Engine/Build/BatchFiles/Linux > /dev/null
./Setup.sh "$@"
popd > /dev/null
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/tanshinotsubasa/unreal-engine.git
git@gitee.com:tanshinotsubasa/unreal-engine.git
tanshinotsubasa
unreal-engine
unreal-engine
4.18-GameWorks

搜索帮助

344bd9b3 5694891 D2dac590 5694891