diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..9a459a3 --- /dev/null +++ b/install.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +BINFILE="${SCRIPT_DIR}/target/release/ent" +INSTALL_DIR="/usr/bin" + +cargo build --release +echo "copying ent to ${INSTALL_DIR}" +sudo cp $BINFILE $INSTALL_DIR +echo "ent installed to ${INSTALL_DIR}"