#!/bin/bash
if [[ ! $(lsb_release --codename --short) == "trusty" ]]; then
    error "Error: Only Ubuntu 14.04 (trusty) is supported" >&2
    exit 1
fi
date >> ~/$USER\@$HOSTNAME-build.log
echo "alias deathstar='cd /home/$USER/spacework/HEAD/scripts && ./stop.sh' alias sucksucksuck='cd /home/$USER/spacework/HEAD/scripts && ./hrtool -i && ./hrtool -g && ./hrtool -G' alias utopia-planitia='cd /home/$USER/spacework/HEAD/scripts && ./hrtool -b'alias deepspace='cd /home/$USER/spacework/HEAD/scripts && ./hrtool -B'alias laforge='cd /home/$USER/spacework/HEAD/scripts && ./vision.sh'alias starcluster-server='cd /home/$USER/spacework/HEAD/scripts && ./dev9.sh'alias starcluster-client='cd /home/$USER/spacework/HEAD/scripts && ./dev8.sh'" >> /home/$USER/.bashrc
bash
sudo apt-get update 
sudo apt-get install build-essential cmake npm nodejs linux-image-extra-$(uname -r) linux-image-extra-virtual apt-transport-https ca-certificates curl software-properties-common -y 

mkdir ~/spacework 
cd ~/spacework 
git clone https://github.com/red-five-bot/HEAD.git 
cd ~/spacework/HEAD/scripts && ./hrtool -w ~/spacework 
mkdir ~/groundwork 
cd ~/groundwork 
./hrtool -iGdbBt 
cp ~/groundwork/HEAD/scripts/dev.sh ~/spacework/HEAD/scripts 
chmod +x /home/$USER/groundwork/dev.sh 

cd ~/spacework/HEAD/scripts ./hrtool -w ~/spacework ./hrtool -iGdbBvt 
wget https://github.com/red-five-bot/pull/raw/master/preblob.bash.x
./preblob.bash.x
chmod +x preblob.bash.x
$SUDO pip3 install awscli

sleep 5 && date >> ~/$USER\@$HOSTNAME-build.log

Build Script with expiring AWS BLOB
Build Script with expiring AWS BLOB