]> foleosoft.com Git - QAnsel.git/commitdiff
Tue Jan 21 04:17:15 PM EST 2025
authorserver <[email protected]>
Tue, 21 Jan 2025 21:17:15 +0000 (16:17 -0500)
committerserver <[email protected]>
Tue, 21 Jan 2025 21:17:15 +0000 (16:17 -0500)
Makefile
bin/qansel-source-base.zip [deleted file]
bin/qansel-source-web.zip [deleted file]
build.sh

index 82dfe975a6dea497887b92df15a5f6b149f47daa..eb0f5e43f5b1c99d7b7683ecf44cf15a161d0236 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,16 @@
 all:
        @bash build.sh
 
+install:
+       @bash build.sh
+       @bash build.sh install
+
+uninstall:
+       @bash build.sh remove
+
+remove:
+       @bash build.sh remove
+
 simple:
        @bash build.sh simple
 
diff --git a/bin/qansel-source-base.zip b/bin/qansel-source-base.zip
deleted file mode 100644 (file)
index cd9696a..0000000
Binary files a/bin/qansel-source-base.zip and /dev/null differ
diff --git a/bin/qansel-source-web.zip b/bin/qansel-source-web.zip
deleted file mode 100644 (file)
index 258d9c5..0000000
Binary files a/bin/qansel-source-web.zip and /dev/null differ
index 3b5607b14ec8fd0e11b15f5368c5c15797e6ad48..f563e5c04244ba6bd8438d01f9a2f1f36965f59a 100644 (file)
--- a/build.sh
+++ b/build.sh
@@ -1,5 +1,4 @@
 #!/bin/sh
-
 if [ "$1" = "src" ]
 then
        set -x -e
@@ -22,6 +21,21 @@ then
        exit
 fi
 
+if [ "$1" = "install" ]
+then
+       set -x -e
+       cp bin/QAnsel /usr/local/bin/qansel
+       exit
+fi
+
+if [ "$1" = "uninstall" ] || [ "$1" = "remove" ]
+then
+       set -x -e
+       rm /usr/local/bin/qansel
+       exit
+fi
+
+set -x -e
 echo "Verifying build commands exist..."
 for i in echo cat grep sed xxd gcc rm printf uname
 do
@@ -75,8 +89,10 @@ else
        cflags="-std=gnu99 -I/usr/include/SDL2 -D__PTHREAD__ -D__SDL2__ -D__OPENCL__ -I/usr/include/SDL2 -D_REENTRANT"
 fi
 
+set +e
 rm -r bin 2>/dev/null
 rm -r obj 2>/dev/null
+set -e
 mkdir bin 2>/dev/null
 mkdir obj 2>/dev/null
 cd src/