diff options
author | Mikko Tiusanen <ams@daug.net> | 2014-05-04 01:18:52 +0300 |
---|---|---|
committer | Mikko Tiusanen <ams@daug.net> | 2014-05-04 01:18:52 +0300 |
commit | 01beb9919b95479d8be040bec74abc5cc67a5e43 (patch) | |
tree | 65f0b79e793848491832756a4c3a32b23668fab3 /misc/merge-ioq3-into-trem.sh | |
parent | 191d731da136b7ee959a17e63111c9146219a768 (diff) |
Initial import.
Diffstat (limited to 'misc/merge-ioq3-into-trem.sh')
-rw-r--r-- | misc/merge-ioq3-into-trem.sh | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/misc/merge-ioq3-into-trem.sh b/misc/merge-ioq3-into-trem.sh new file mode 100644 index 0000000..347ecaa --- /dev/null +++ b/misc/merge-ioq3-into-trem.sh @@ -0,0 +1,42 @@ +#! /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 NOTTODO TODO id-readme.txt misc/ + +# 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 `find -iname "*.ico"` +rm -f `find -iname "*.bmp"` + +# 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/ |