forked from srbcheema1/CheemaFy_legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_mf.sh
42 lines (31 loc) · 1.04 KB
/
update_mf.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
#!/bin/bash
#this must be in ~/programs/CheemaFy
#cp homefiles
cp ~/.bashrc ~/programs/CheemaFy/home_files/
cp ~/.bash_aliases ~/programs/CheemaFy/home_files/
cp ~/.vimrc ~/programs/CheemaFy/home_files/
cp ~/.gitconfig ~/programs/CheemaFy/home_files/
#cp srbScripts
cp -r ~/programs/srbScripts/. ~/programs/CheemaFy/srbScripts/
#cp importlib
cp -r ~/programs/python/importlib/. ~/programs/CheemaFy/importlib/
#vim files
cp -r ~/.vim/syntax ~/programs/CheemaFy/myPlugins/vim/
cp -r ~/.vim/ftdetect ~/programs/CheemaFy/myPlugins/vim/
#cd ~/programs/CheemaFy/srbScripts
#rm $(ls | grep '.*pyc$')
extra_files=`ls ~/programs/CheemaFy/srbScripts/ | grep pyc | wc -l`
if [ "$extra_files" -gt 0 ]
then
rm ~/programs/CheemaFy/srbScripts/*.pyc
fi
extra_files=`ls ~/programs/CheemaFy/importlib/ | grep __* | wc -l`
if [ "$extra_files" -gt 0 ]
then
rm -r ~/programs/CheemaFy/importlib/__*
fi
extra_files=`ls ~/programs/CheemaFy/importlib/ | grep pyc | wc -l`
if [ "$extra_files" -gt 0 ]
then
rm -r ~/programs/CheemaFy/importlib/*.pyc
fi