-
Notifications
You must be signed in to change notification settings - Fork 16
/
etoile-fetch.sh
executable file
·78 lines (58 loc) · 1.63 KB
/
etoile-fetch.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
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
73
74
75
76
77
#!/bin/bash
etoilefetch() {
DESTDIR=$1
REPONAME=$2
echo "Entering $DESTDIR..."
if [[ ! -e "$DESTDIR" ]]; then
echo "Error, $DESTDIR is missing. Skipping $REPONAME"
else
PREVIOUSDIR=$PWD
cd "$DESTDIR"
if [[ ! -e "$REPONAME" ]]; then
echo "Repo $REPONAME is not present. Fetching it..."
git clone http://github.com/etoile/$REPONAME
else
echo "Have $REPONAME. Pulling changes..."
cd $REPONAME
# TODO: Support 'pull' or 'fetch' and passing options
git pull
cd ..
fi
cd $PREVIOUSDIR
fi
}
# Languages
etoilefetch . Languages
etoilefetch Languages ObjC2JS
etoilefetch Languages SourceCodeKit
etoilefetch Languages ParserKit
# Frameworks
etoilefetch Frameworks CoreObject
etoilefetch Frameworks EtoileFoundation
etoilefetch Frameworks UnitKit
etoilefetch Frameworks EtoileUI
etoilefetch Frameworks EtoilePaint
etoilefetch Frameworks EtoileText
etoilefetch Frameworks IconKit
etoilefetch Frameworks ScriptKit
etoilefetch Frameworks SystemConfig
etoilefetch Frameworks XMPPKit
# Bundles
# Services
etoilefetch Services/Private ObjectManager
etoilefetch Services/Private ProjectManager
etoilefetch Services/Private Worktable
etoilefetch Services/Private System
etoilefetch Services/User DictionaryReader
etoilefetch Services/User FontManager
etoilefetch Services/User Inbox
etoilefetch Services/User StepChat
etoilefetch Services/User StructuredTextEditor
# Developer
etoilefetch Developer/Services DocGenerator
etoilefetch Developer/Services ModelBuilder
# Dependencies
etoilefetch Dependencies libdispatch-objc2
# Bootstrap
ln -sfn ../Frameworks/UnitKit Bootstrap
ln -sfn ../Frameworks/EtoileFoundation Bootstrap