From b4db9e6a77054c5798e7e8a040383fa16ca110af Mon Sep 17 00:00:00 2001 From: juraph Date: Tue, 23 Apr 2024 12:48:54 +1000 Subject: [PATCH] Add install script Finally. --- tools/install.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tools/install.sh diff --git a/tools/install.sh b/tools/install.sh new file mode 100755 index 0000000..c12cdef --- /dev/null +++ b/tools/install.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +if [[ -z "$PREFIX" ]]; then + PREFIX="/usr/local" + # $var is empty, do what you want +fi + + +echo "Installing ornis to $PREFIX/bin" + +cd "$(dirname "$0")" + +if ./compile.sh ; then + echo "Copying file" + sudo cp ../../build/ornis/ornis $PREFIX/bin +fi +echo "Installation complete!"