Last active
August 29, 2015 14:17
-
-
Save PhroZenOne/bf40e364500e2300641f to your computer and use it in GitHub Desktop.
Install preforce, checkout project and install all needed for ue4 server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
set -x | |
export P4USER=$1 | |
export P4PASSWD=$2 | |
PATH_TO_REPO=$3 | |
export P4PORT=$4 | |
# | |
#Feches a perforce workspace and prepares | |
# | |
#check if p4 is installed. Else add key for it. | |
set +e | |
hash p4 &> /dev/null | |
if [ $? -eq 1 ]; then | |
wget -q http://package.perforce.com/perforce.pubkey -O - | sudo apt-key add - | |
sudo sh -c "echo \"deb http://package.perforce.com/apt/ubuntu precise release\" > /etc/apt/sources.list.d/perforce.sources.list" | |
fi | |
set -e | |
#install all that is needed for unreal engine and perforce checkout | |
sudo apt-get update && sudo apt-get install build-essential git clang-3.5 perforce-cli libfreetype6-dev libgtk-3-dev -y | |
cd $PATH_TO_REPO | |
p4 client -o | p4 client -i | |
p4 sync | |
#for some reason clang++ is still missing after installing it. Symlinking it. | |
sudo ln -s /usr/bin/clang++-3.5 /usr/bin/clang++ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment