ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/utils/get_release
Revision: 1.1
Committed: Fri Feb 3 07:14:47 2006 UTC (18 years, 3 months ago) by root
Branch: MAIN
Branch point for: UPSTREAM
Log Message:
Initial revision

File Contents

# User Rev Content
1 root 1.1 #!/bin/bash
2     # Copyright (C) 1999 Bob Tanner
3     #
4     # This program is free software; you can redistribute it and/or modify
5     # it under the terms of the GNU General Public License as published by
6     # the Free Software Foundation; either version 2 of the License, or
7     # (at your option) any later version.
8     #
9     # This program is distributed in the hope that it will be useful,
10     # but WITHOUT ANY WARRANTY; without even the implied warranty of
11     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12     # GNU General Public License for more details.
13     #
14     # You should have received a copy of the GNU General Public License
15     # along with this program; if not, write to the Free Software
16     # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17     #
18    
19     version="0.96.0"
20     export CVS_RSH="/usr/bin/ssh"
21    
22     # Get source code
23     /usr/bin/cvs -z3 export -d crossfire-$version -D now crossfire
24     if [ $? -ne 0 ]; then
25     echo "Could not get crossfire source code."
26     fi
27    
28     /usr/bin/cvs -z3 export -d crossfire-$version.maps -D now maps
29     if [ $? -ne 0 ]; then
30     echo "Could not get crossfire maps."
31     fi
32    
33     /usr/bin/cvs -z3 export -d crossfire-$version.arch -D now arch
34     if [ $? -ne 0 ]; then
35     echo "Could not get crossfire arch."
36     fi
37    
38     # Don't assume GNU tar
39     /bin/tar -cf crossfire-$version.tar crossfire-$version
40     /bin/gzip -9 crossfire-$version.tar
41    
42     /bin/tar -cf crossfire-$version.maps.tar crossfire-$version.maps
43     /bin/gzip -9 crossfire-$version.maps.tar
44    
45     /bin/tar -cf crossfire-$version.arch.tar crossfire-$version.arch
46     /bin/gzip -9 crossfire-$version.arch.tar
47