-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclean_push_upload.sh
executable file
·43 lines (35 loc) · 1.11 KB
/
clean_push_upload.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
find . -name '*.pyc' -print0 | xargs -0 rm -f
#cp ./Inception/settings_for_dotcloud.py ./Inception/settings.py
newline="\n"
git status
echo -e "$newline"
#read -p ">>> Proceed to push the code to dotcloud ? " yn
#if [ $yn = "y" ] || [ $yn = "Y" ] || [ $yn = "YES" ] || [ $yn = "yes" ] || [ $yn = "Yes" ]; then
# export https_proxy="http://proxy.iiit.ac.in:8080"
# dotcloud push
# export https_proxy="https://proxy.iiit.ac.in:8080"
#else
# echo -e "$newline"
# echo ">>> No problem, do it later !"
#fi
echo -e "$newline"
read -p ">>> Enter custom commands: " command
while true
do
if [ "$command" = "done" ] || [ "$command" = "Done" ] || [ "$command" = "DONE" ]; then
break
fi
if [ "$command" = "exit" ] || [ "$command" = "Exit" ] || [ "$command" = "EXIT" ]; then
exit
fi
$command
git status
echo -e "$newline"
read -p ">>> Enter git commands: " command
done
echo -e "$newline"
read -p ">>> Enter commit message: " commit_msg
git commit -m "$commit_msg"
git push origin master
#cp ./Inception/settings_for_localhost.py ./Inception/settings.py
echo -e "\nDone !\n"