-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall
executable file
·72 lines (62 loc) · 1.39 KB
/
install
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
sample_folder_creator(){
# creat sample python repository
if [ -d ~/.snakep ]
then
read -p ""~/.snakep" exist! can i remove it and i recreate it? [Y/n]" answer
if [[ $answer = "n" || $answer = "N" ]]
then
exit 0
else
rm -rf ~/.snakep
fi
fi
mkdir ~/.snakep
cp -r snake/* ~/.snakep
cp -r snake/.gitignore ~/.snakep
mv ~/.snakep/src/__init__.py.sample ~/.snakep/src/__init__.py
mv ~/.snakep/test/__init__.py.sample ~/.snakep/test/__init__.py
mv ~/.snakep/setup.py.sample ~/.snakep/setup.py
}
licenses_repository_creator(){
#creator for license repository
if [ -d ~/.licenses ]
then
read -p ""~/.licenses" exist! can i remove it and i recreate it? [Y/n]" answer
if [[ $answer = "n" || $answer = "N" ]]
then
exit 0
else
rm -rf ~/.licenses
fi
fi
cp -r licenses ~
mv ~/licenses ~/.licenses
}
commonds_creator(){
# creat commands for your python project
if [ -s ~/.snakep_commonds ]
then
read -p ""~/.snakep_commonds" exist! can i remove it and i recreate it? [Y/n]" answer
if [[ $answer = "n" || $answer = "N" ]]
then
exit 0
else
rm ~/.snakep_commonds
fi
fi
cp .snakep_commonds ~
}
snakep(){
#creator for snakep command on your system
if [ -s /usr/bin/snakep ]
then
sudo rm /usr/bin/snakep
fi
sudo cp ./snakep /usr/bin
echo "install Successful! :)"
}
sample_folder_creator
licenses_repository_creator
commonds_creator
snakep