-
Notifications
You must be signed in to change notification settings - Fork 0
/
clone_eiffelstudio_trunk.sh
executable file
·76 lines (63 loc) · 1.4 KB
/
clone_eiffelstudio_trunk.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
#!/bin/sh
export OP=$1
export REPO_NAME=eiffelstudio-trunk-svn-git
export REPO_SVNURL=https://svn.eiffel.com/eiffelstudio
export CLONEGITSVN_STEP=50
export CLONEGITSVN_OPTIONS=" -T trunk -b branches -b tags --authors-file=/home/jfiat/trunk/svn.logs --ignore-paths=\"^[^/]+/(?:branches|tags)\" "
export CLONEGITSVN_FETCH_OPTIONS=" --ignore-paths=\"^[^/]+/(?:branches|tags)\" "
f_usage() {
echo Script
echo - init: initialize clone
echo - info: info about cloning
echo - fetch: fetch recent commits
echo - stop: stop cloning
echo - unstop: reset previous stop operation
echo - clean: clean previously stopped cloning
echo - reset: reset cloning i.e clobber
}
f_init() {
python clone-git-svn.py $REPO_NAME init $REPO_SVNURL
}
f_fetch() {
python clone-git-svn.py $REPO_NAME fetch
}
f_info() {
python clone-git-svn.py $REPO_NAME info
}
f_stop() {
python clone-git-svn.py $REPO_NAME stop
}
f_unstop() {
python clone-git-svn.py $REPO_NAME unstop
}
f_clean() {
python clone-git-svn.py $REPO_NAME clean
}
f_reset() {
python clone-git-svn.py $REPO_NAME clean
\rm -rf ${REPO_NAME}*
}
if [ "$OP" = "" ]; then
f_usage
fi
if [ "$OP" = "init" ]; then
f_init
fi
if [ "$OP" = "info" ]; then
f_info
fi
if [ "$OP" = "fetch" ]; then
f_fetch
fi
if [ "$OP" = "stop" ]; then
f_stop
fi
if [ "$OP" = "unstop" ]; then
f_unstop
fi
if [ "$OP" = "clean" ]; then
f_clean
fi
if [ "$OP" = "reset" ]; then
f_reset
fi