Last change
on this file since 4137 was
4137,
checked in by patrick, 20 years ago
|
orxonox/branches/md2_loader: modified the checkout script, that you can now checkout the branche specific files by typing ./scripts/data.checkout md2
|
-
Property svn:executable set to
*
|
File size:
933 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | #if [ -z "$1" ] |
---|
4 | #then |
---|
5 | # svn co https://svn.orxonox.ethz.ch/data data |
---|
6 | #else |
---|
7 | # svn co https://svn.orxonox.ethz.ch/data data --username $1 |
---|
8 | #fi |
---|
9 | |
---|
10 | if [ "$1" = "md2_loader" ] |
---|
11 | then |
---|
12 | echo "COOL" |
---|
13 | fi |
---|
14 | |
---|
15 | |
---|
16 | case "$1" in |
---|
17 | |
---|
18 | # md2_loader branche specific stuff |
---|
19 | "md2_loader" | "md2" ) |
---|
20 | echo "(II) md2_loader branche specific data is been loaded" |
---|
21 | echo "(II) this just works on linux and on mac OS X" |
---|
22 | echo |
---|
23 | |
---|
24 | if [ -e data ] |
---|
25 | then |
---|
26 | wget http://www.orxonox.ethz.ch/files/data_additions/md2_loader/fonts.tar.bz2 |
---|
27 | mv fonts.tar.bz2 data/ |
---|
28 | cd data |
---|
29 | tar -jxf fonts.tar.bz2 |
---|
30 | rm fonts.tar.bz2 |
---|
31 | cd .. |
---|
32 | echo |
---|
33 | echo "(II) Update finished successfully!" |
---|
34 | else |
---|
35 | echo |
---|
36 | echo "(EE) there is no data directory here" |
---|
37 | fi |
---|
38 | ;; |
---|
39 | |
---|
40 | # default case |
---|
41 | * ) |
---|
42 | if [ -z "$1" ] |
---|
43 | then |
---|
44 | svn co https://svn.orxonox.ethz.ch/data data |
---|
45 | else |
---|
46 | svn co https://svn.orxonox.ethz.ch/data data --username $1 |
---|
47 | fi |
---|
48 | ;; |
---|
49 | |
---|
50 | esac |
---|
51 | |
---|
Note: See
TracBrowser
for help on using the repository browser.