-
Notifications
You must be signed in to change notification settings - Fork 3
/
allup
executable file
·41 lines (34 loc) · 835 Bytes
/
allup
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
#!/usr/bin/env sh
SVN=/usr/bin/svn
SVN_UPOPTIONS=""
BREW=/usr/local/bin/brew
GIT=/usr/local/bin/git
GIT_OPTIONS=""
echo "Checking brew..."
sudo brew update
echo "Checking TextMate..."
cd ~/Library/Application\ Support/TextMate/Bundles/IDL.tmbundle
$SVN up $SVN_UPOPTIONS
cd ~/Library/Application\ Support/TextMate/Bundles/Docbook.tmbundle
$SVN up $SVN_UPOPTIONS
cd ~/Library/Application\ Support/TextMate/Themes
$SVN up $SVN_UPOPTIONS
cd ~/Library/Application\ Support/Avian/Bundles/IDL.tmbundle
$GIT pull $GIT_OPTIONS
# handle Subversion repos
repos=( `cat ~/.repos` )
for r in ${repos[*]}
do
echo "Updating $r..."
cd $r
$SVN up $SVN_OPTIONS
done
# handle Git repos
repos=( `cat ~/.gitrepos` )
for r in ${repos[*]}
do
echo "Updating $r..."
cd $r
$GIT pull $GIT_OPTIONS
done
echo "Finished updating repos at `date`"