Skip to content

Commit

Permalink
Add some messages to install and uninstall scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
a-parhom committed Jan 29, 2024
1 parent c7adcd9 commit b0dfaca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/sh

echo "Running updatedb..."
sudo updatedb

echo "Looking for libkwin.so.5 location..."
LIBKWIN_PATH=$(locate libkwin.so.5 | grep '\/libkwin.so.5$')
LIBKWIN_DIR="$(dirname "${LIBKWIN_PATH}")"

Expand All @@ -10,11 +12,17 @@ if [ ! -f "$LIBKWIN_PATH" ]; then
exit 1
fi

echo "Location of libkwin.so.5 found."

if [ ! -f "$LIBKWIN_DIR/libkwin.so" ]; then
echo "Creating libkwin.so symlink..."
sudo ln -s "$LIBKWIN_PATH" "$LIBKWIN_DIR/libkwin.so"
else
echo "The libkwin.so symlink already in place."
fi

echo "Building LightlyShaders..."

ORIGINAL_DIR=$(pwd)

rm -rf build
Expand All @@ -23,6 +31,8 @@ cd build

cmake ../ -DCMAKE_INSTALL_PREFIX=/usr
make -j$(nproc)

echo "Installing LightlyShaders..."
sudo make install

cd $ORIGINAL_DIR
1 change: 1 addition & 0 deletions uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh

echo "Uninstalling LightlyShaders..."
ORIGINAL_DIR=$(pwd)

cd build
Expand Down

0 comments on commit b0dfaca

Please sign in to comment.