2014-07-09 22:59:03 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
from=$(dirname "$0")
|
2014-10-14 00:51:29 +02:00
|
|
|
where="${1:-/usr/local/bin}"
|
|
|
|
mkdir -p "$where" || exit
|
2014-07-09 22:59:03 +02:00
|
|
|
|
|
|
|
if [[ "$1" != --remove ]]; then
|
2014-10-14 00:51:29 +02:00
|
|
|
cp -v "$from/easyoptions" "$where"
|
|
|
|
cp -v "$from/easyoptions.sh" "$where"
|
|
|
|
cp -v "$from/easyoptions.rb" "$where"
|
2014-07-09 22:59:03 +02:00
|
|
|
else
|
2014-10-14 00:51:29 +02:00
|
|
|
rm -vf "$where/easyoptions"
|
|
|
|
rm -vf "$where/easyoptions.sh"
|
|
|
|
rm -vf "$where/easyoptions.rb"
|
2014-07-09 22:59:03 +02:00
|
|
|
fi
|