From: server Date: Tue, 21 Jan 2025 21:17:15 +0000 (-0500) Subject: Tue Jan 21 04:17:15 PM EST 2025 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=87b9c3cf7b45bd17b3d6b2a2ca89119870fc26f9;p=QAnsel.git Tue Jan 21 04:17:15 PM EST 2025 --- diff --git a/Makefile b/Makefile index 82dfe97..eb0f5e4 100644 --- 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 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 index 258d9c5..0000000 Binary files a/bin/qansel-source-web.zip and /dev/null differ diff --git a/build.sh b/build.sh index 3b5607b..f563e5c 100644 --- 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/