Improve usability (updates and attach)
This commit is contained in:
parent
50356f36f1
commit
58aa0ada7d
11
install-all
11
install-all
@ -8,6 +8,8 @@ sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && sudo apt update && sud
|
|||||||
# Install libglez
|
# Install libglez
|
||||||
#
|
#
|
||||||
|
|
||||||
|
mkdir cathook; cd cathook
|
||||||
|
|
||||||
git clone --recursive https://github.com/nullworks/libglez.git;cd libglez;mkdir build;cd build;cmake ..;make;sudo make install;cd ..;cd ..
|
git clone --recursive https://github.com/nullworks/libglez.git;cd libglez;mkdir build;cd build;cmake ..;make;sudo make install;cd ..;cd ..
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -26,4 +28,11 @@ git clone --recursive https://github.com/nullworks/simple-ipc.git;cd simple-ipc;
|
|||||||
# Build cathook
|
# Build cathook
|
||||||
#
|
#
|
||||||
|
|
||||||
git clone --recursive https://github.com/nullworks/cathook.git;cd cathook;mkdir build;cd build;cmake ..;make -j$(grep -c '^processor' /proc/cpuinfo); sudo make data
|
git clone --recursive https://github.com/nullworks/cathook.git;cd cathook;mkdir build;cd build;cmake ..;make -j$(grep -c '^processor' /proc/cpuinfo); sudo make data; cd ..; cd ..
|
||||||
|
|
||||||
|
#
|
||||||
|
# Do post installation stuff
|
||||||
|
#
|
||||||
|
|
||||||
|
cp -a -u ./cathook/tools/. ./
|
||||||
|
rm ./README
|
||||||
|
1
tools/README
Normal file
1
tools/README
Normal file
@ -0,0 +1 @@
|
|||||||
|
These files are not intended to be run from this folder.
|
4
tools/attach
Executable file
4
tools/attach
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cd cathook
|
||||||
|
sudo bash attach
|
23
tools/update
Executable file
23
tools/update
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cd cathook
|
||||||
|
|
||||||
|
update()
|
||||||
|
{
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
update
|
||||||
|
|
||||||
|
cd build; cmake ..; make; cd ..; cd ..
|
||||||
|
|
||||||
|
cp -a -u ./cathook/tools/. ./; rm ./README
|
||||||
|
|
Reference in New Issue
Block a user