From 4083d988b0d7dcf455641603186d80be60f2e878 Mon Sep 17 00:00:00 2001 From: TotallyNotElite <1yourexperiment@protonmail.com> Date: Mon, 21 May 2018 10:40:28 +0200 Subject: [PATCH] Also update and build other dependencies --- tools/updater | 42 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/tools/updater b/tools/updater index ef9287d3..48f9a552 100755 --- a/tools/updater +++ b/tools/updater @@ -1,8 +1,7 @@ #!/usr/bin/env bash +sudo echo Elevated -cd cathook - - +cd libglez git fetch >update.log if ! git pull origin $(git rev-parse --abbrev-ref HEAD) >>update.log; then $DIALOG --title "Error" --backtitle "Updating" --msgbox "An error occured while updating cathook, check update.log for details. It might have been caused by changes in local files - in that case try resetting local repo." 8 78 @@ -12,9 +11,44 @@ if ! git submodule update --remote --recursive >>update.log; then $DIALOG --title "Error" --backtitle "Updating" --msgbox "An error occured while updating cathook, check update.log for details. It might have been caused by changes in local files - in that case try resetting local repo." 8 78 exit fi -} +cd build; cmake ..; make;sudo make install;cd ..; cd .. +cd libxoverlay +git fetch >update.log +if ! git pull origin $(git rev-parse --abbrev-ref HEAD) >>update.log; then + $DIALOG --title "Error" --backtitle "Updating" --msgbox "An error occured while updating cathook, check update.log for details. It might have been caused by changes in local files - in that case try resetting local repo." 8 78 + exit +fi +if ! git submodule update --remote --recursive >>update.log; then + $DIALOG --title "Error" --backtitle "Updating" --msgbox "An error occured while updating cathook, check update.log for details. It might have been caused by changes in local files - in that case try resetting local repo." 8 78 + exit +fi +cd build; cmake ..; make;sudo make install;cd ..; cd .. + +cd simple-ipc +git fetch >update.log +if ! git pull origin $(git rev-parse --abbrev-ref HEAD) >>update.log; then + $DIALOG --title "Error" --backtitle "Updating" --msgbox "An error occured while updating cathook, check update.log for details. It might have been caused by changes in local files - in that case try resetting local repo." 8 78 + exit +fi +if ! git submodule update --remote --recursive >>update.log; then + $DIALOG --title "Error" --backtitle "Updating" --msgbox "An error occured while updating cathook, check update.log for details. It might have been caused by changes in local files - in that case try resetting local repo." 8 78 + exit +fi +cd build; cmake ..; make;sudo make install;cd ..; cd .. + +cd cathook +git fetch >update.log +if ! git pull origin $(git rev-parse --abbrev-ref HEAD) >>update.log; then + $DIALOG --title "Error" --backtitle "Updating" --msgbox "An error occured while updating cathook, check update.log for details. It might have been caused by changes in local files - in that case try resetting local repo." 8 78 + exit +fi +if ! git submodule update --remote --recursive >>update.log; then + $DIALOG --title "Error" --backtitle "Updating" --msgbox "An error occured while updating cathook, check update.log for details. It might have been caused by changes in local files - in that case try resetting local repo." 8 78 + exit +fi cd build; cmake ..; make; cd ..; cd .. + cp -a -u ./cathook/tools/. ./; rm ./README; rm ./updater