blob: 2e4add437d4c45e765f259d7d234228280ee9def (
plain)
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
|
#! /bin/sh
cd /tmp
# Make sure previous copies are gone
rm -rf quake3/
# Checkout a new copy of ioq3
svn co svn://svn.icculus.org/quake3/trunk/ quake3
cd quake3/
IOQ3REVISION=`svnversion .`
IOQ3VERSION=ioq3-r$IOQ3REVISION
rm -rf $IOQ3VERSION
svn export . $IOQ3VERSION
cd $IOQ3VERSION
# Remove READMEs and the like
rm -rf BUGS ChangeLog README COPYING.txt TODO id-readme.txt web/
# Remove Q3 ui stuff
rm -rf ui/
# Remove Windows/VC related stuff
rm -f `find -iname "*.bat"`
rm -f `find -iname "*.lnt"`
rm -f `find -iname "*.sln"`
rm -f `find -iname "*.vcproj"`
rm -f `find -iname "*.def"`
rm -f `find -iname "*.q3asm"`
rm -f `find -iname "*.mak"`
rm -f code/tools/lcc/makefile.nt
rm -rf code/win32/msvc/
# Remove Linux docs
rm -rf code/unix/LinuxSupport/
rm -f code/unix/README.*
# Remove game code
rm -rf code/cgame/ code/game/ code/ui/ code/q3_ui/
mv code src
cd ..
svn_load_dirs svn://svn.icculus.org/tremulous/ -t upstream/$IOQ3VERSION upstream/current $IOQ3VERSION/
|