Replace /home/buildbot/ for ~

This commit is contained in:
Francisco Javier Trujillo Mata 2018-12-31 10:09:40 +01:00
parent 746152473d
commit 90d7eaeda4
1 changed files with 11 additions and 18 deletions

View File

@ -1,7 +1,7 @@
display_usage() { display_usage() {
echo -e "\nSetup a RetroArch PS2 build environment on Debian/Ubuntu" echo -e "\nSetup a RetroArch PS2 build environment on Debian/Ubuntu"
echo -e "\nUsage: [install] [build] [export]\n" echo -e "\nUsage: [install] [build] [export]\n"
echo -e "It will install the toolchain in /home/buildbot/tools\n" echo -e "It will install the toolchain in ~/tools\n"
echo -e "Arguments:\n" echo -e "Arguments:\n"
echo -e "install:\n install or re(install) the toolchain" echo -e "install:\n install or re(install) the toolchain"
echo -e "build:\n update the source tree and build everything" echo -e "build:\n update the source tree and build everything"
@ -10,13 +10,11 @@ display_usage() {
update-profile() update-profile()
{ {
echo "export PS2DEV=/home/buildbot/tools/ps2dev" >> ~/.profile echo "" >> ~/.profile
source ~/.profile echo "#### PS2DEV ####" >> ~/.profile
echo "export PS2DEV=~/tools/ps2dev" >> ~/.profile
echo "export PS2SDK=$PS2DEV/ps2sdk" >> ~/.profile echo "export PS2SDK=\$PS2DEV/ps2sdk" >> ~/.profile
source ~/.profile echo "export PATH=\$PATH:\$PS2DEV/bin:\$PS2DEV/ee/bin:\$PS2DEV/iop/bin:\$PS2DEV/dvp/bin:\$PS2SDK/bin" >> ~/.profile
echo "export PATH=$PATH:$PS2DEV/bin:$PS2DEV/ee/bin:$PS2DEV/iop/bin:$PS2DEV/dvp/bin:$PS2SDK/bin" >> ~/.profile
source ~/.profile source ~/.profile
} }
@ -127,10 +125,11 @@ fi;
if [ "$1" = "install" ]; then if [ "$1" = "install" ]; then
# Install needed dependencies # Install needed dependencies
sudo apt install build-essential git make p7zip tar wget patch sudo apt install -yqqq build-essential git p7zip tar wget patch libucl-dev
sudo apt install -yqqq libucl-dev zlib1g-dev
if [ ! -d /home/buildbot/tools/ps2dev ]; then if [ ! -d ~/tools/ps2dev ]; then
mkdir -p /home/buildbot/tools/ps2dev mkdir -p ~/tools/ps2dev
# Prepare the lbash # Prepare the lbash
update-profile update-profile
fi fi
@ -148,17 +147,11 @@ if [ "$1" = "install" ]; then
install-gskit install-gskit
install-ps2-packer install-ps2-packer
if [ ! -d "/home/buildbot/tools" ]; then
sudo mkdir -p /home/buildbot
sudo ln -s ~/tools /home/buildbot/tools
fi;
echo $platform environment ready... echo $platform environment ready...
fi; fi;
if [ "$1" = "build" ]; then if [ "$1" = "build" ]; then
if [ -d "/home/buildbot/tools/ps2dev/" ]; then if [ -d "~/tools/ps2dev/" ]; then
cd ~/libretro/ps2 cd ~/libretro/ps2
git pull git pull
./libretro-buildbot-recipe.sh recipes/playstation/ps2 ./libretro-buildbot-recipe.sh recipes/playstation/ps2