4
# Install script for these scripts.
11
__INSTALL_DIR=$HOME/bin
14
# https://stackoverflow.com/a/246128
15
__CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
17
#TODO: Add unistall option..
20
echo "install.sh [options]"
22
echo " Install the scripts"
25
echo " --help Display this help message."
29
echo " --install Install the scripts. You have to provide this"
30
echo " if you want to install the scripts."
32
echo " --target <directory> Directory to install the scripts into."
33
echo " Default: \$HOME/bin"
38
function __parse_args () {
68
if [[ $__INSTALL_SET == 1 ]]
70
mkdir -p $__INSTALL_DIR
71
cp $__CWD/scripts/*.sh $__INSTALL_DIR/
74
echo "YOU MUST PROVIE -i OR --install FOR IT TO INSTALL THE SCRIPTS."
75
echo "Please see -h or --help for more information."