Skip to content

Instantly share code, notes, and snippets.

@PhroZenOne
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PhroZenOne/bf40e364500e2300641f to your computer and use it in GitHub Desktop.
Save PhroZenOne/bf40e364500e2300641f to your computer and use it in GitHub Desktop.
Install preforce, checkout project and install all needed for ue4 server
#!/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