Skip to content

Commit adef015

Browse files
committed
Added new simple-uninstall.
1 parent 9193be0 commit adef015

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

simple-build-and-install

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ echo " WITH_GLINJECT=$WITH_GLINJECT"
7979
PREFIX="/usr"
8080
OPTIONS="-DENABLE_32BIT_GLINJECT=$ENABLE_32BIT_GLINJECT -DENABLE_X86_ASM=$ENABLE_X86_ASM -DENABLE_FFMPEG_VERSIONS=$ENABLE_FFMPEG_VERSIONS -DWITH_QT5=$WITH_QT5 -DWITH_GLINJECT=$WITH_GLINJECT"
8181

82-
echo "Creating build-release ..."
82+
echo "Entering build-release directory ..."
8383
mkdir -p build-release
8484
cd build-release
8585

@@ -100,6 +100,7 @@ sudo rm -f "/usr/lib/x86_64-linux-gnu/libssr-glinject."*
100100
echo "Installing ..."
101101
sudo make install
102102

103+
echo "Leaving build-release directory ..."
103104
cd ..
104105

105106
echo "Running post-install script ..."

simple-uninstall

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
# Run this if you used 'simple-build-and-install' and you want to uninstall the program again.
3+
4+
set -e
5+
cd "$( dirname "${BASH_SOURCE[0]}" )"
6+
7+
if [ x"$( whoami )" = x"root" ]; then
8+
echo "Error: don't run this script as root, this will mess up file permissions"
9+
exit 1
10+
fi
11+
12+
echo "Entering build-release directory ..."
13+
cd build-release
14+
15+
echo "Uninstalling ..."
16+
sudo xargs rm < install_manifest.txt
17+
18+
echo "Leaving build-release directory ..."
19+
cd ..
20+
21+
echo "Running post-install script ..."
22+
sudo ./postinstall
23+
24+
echo "Done."

0 commit comments

Comments
 (0)