-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·46 lines (39 loc) · 2.45 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
##~---------------------------------------------------------------------------##
## _______ _______ _______ _ _ ##
## | _ || || || | _ | | ##
## | |_| || || _ || || || | ##
## | || || | | || | ##
## | || _|| |_| || | ##
## | _ || |_ | || _ | ##
## |__| |__||_______||_______||__| |__| ##
## www.amazingcow.com ##
## File : install.sh ##
## Project : RepoBareBones ##
## Date : Jun 27, 2017 ##
## License : GPLv3 ##
## Author : n2omatt <[email protected]> ##
## Copyright : AmazingCow - 2017 ##
## ##
## Description : ##
## ##
##---------------------------------------------------------------------------~##
################################################################################
## Vars ##
################################################################################
SHARE_PATH="/usr/local/share/amazingcow-repobb";
BIN_PATH="/usr/local/bin";
################################################################################
## Script ##
################################################################################
echo "Installing resouces at : ($SHARE_PATH)";
echo "Installing script at : ($BIN_PATH)";
## Clean up the possible previous installation.
rm -rf "$SHARE_PATH";
mkdir -p "$SHARE_PATH";
## Copy everything to the right places.
cp -rf ./resources/* $SHARE_PATH;
cp -rf ./scripts/repobb.py $BIN_PATH/repobb;
## Make the script executable.
chmod 755 $BIN_PATH/repobb
echo "Done...";