init commit
This commit is contained in:
16
install.sh
Executable file
16
install.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
INSTALL_DIR="${INSTALL_DIR:-/usr/local/bin}"
|
||||
|
||||
echo "Building doks..."
|
||||
make build
|
||||
|
||||
echo "Installing to $INSTALL_DIR..."
|
||||
if [ -w "$INSTALL_DIR" ]; then
|
||||
mv doks "$INSTALL_DIR/"
|
||||
else
|
||||
sudo mv doks "$INSTALL_DIR/"
|
||||
fi
|
||||
|
||||
echo "Done! doks $(doks -v) installed to $INSTALL_DIR/doks"
|
||||
Reference in New Issue
Block a user