mirror of
https://github.com/ISpillMyDrink/OpenSuperClone.git
synced 2026-08-23 11:36:29 +00:00
Minor changes.
This commit is contained in:
@@ -37,7 +37,7 @@ else
|
||||
echo "Build succeeded."
|
||||
fi
|
||||
|
||||
echo "Installing..."
|
||||
echo "Installing OpenSuperClone to $CMAKE_INSTALL_PREFIX..."
|
||||
make install
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
|
||||
+13
-3
@@ -2,8 +2,18 @@
|
||||
|
||||
[ ! -d build ] && mkdir build
|
||||
|
||||
echo "Configuring..."
|
||||
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/ $@
|
||||
CMAKE_OPTIONS=""
|
||||
CMAKE_BUILD_TYPE=Release
|
||||
CMAKE_INSTALL_PREFIX=/usr
|
||||
|
||||
if [ "$1" = "debug" ]; then
|
||||
CMAKE_OPTIONS="-DDEBUG=ON"
|
||||
CMAKE_BUILD_TYPE=Debug
|
||||
CMAKE_INSTALL_PREFIX=./Debug
|
||||
fi
|
||||
|
||||
echo "Configuring for $CMAKE_BUILD_TYPE..."
|
||||
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX $CMAKE_OPTIONS
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "CMake failed. Aborting."
|
||||
@@ -27,7 +37,7 @@ else
|
||||
echo "Build succeeded."
|
||||
fi
|
||||
|
||||
echo "Installing OpenSuperClone to /usr/..."
|
||||
echo "Installing OpenSuperClone to $CMAKE_INSTALL_PREFIX..."
|
||||
sudo make install
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
|
||||
@@ -5,5 +5,4 @@ INSTALL="make install"
|
||||
CLEAN="make clean"
|
||||
BUILT_MODULE_NAME="$PACKAGE_NAME"
|
||||
DEST_MODULE_LOCATION="/kernel/drivers/misc"
|
||||
REMAKE_INITRD="no"
|
||||
AUTOINSTALL="yes"
|
||||
+3
-1
@@ -41,7 +41,9 @@ echo "Done uninstalling OpenSuperClone from /usr/..."
|
||||
|
||||
echo "Uninstalling OSCDriver..."
|
||||
|
||||
sudo rmmod oscdriver
|
||||
if lsmod | grep -q oscdriver; then
|
||||
sudo rmmod oscdriver
|
||||
fi
|
||||
|
||||
VERSION=$(grep -oP '(?<=set\(OSC_DRIVER_VERSION ).*(?=\))' CMakeLists.txt)
|
||||
VERSION=$(echo $VERSION | cut -d' ' -f1)
|
||||
|
||||
Reference in New Issue
Block a user