Skip to content

Commit

Permalink
Add install script
Browse files Browse the repository at this point in the history
Finally.
  • Loading branch information
juraph-dev committed Apr 23, 2024
1 parent f6674ac commit b4db9e6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tools/install.sh
Original file line number Diff line number Diff line change
@@ -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!"

0 comments on commit b4db9e6

Please sign in to comment.