root/tags/gdal_1_3_2/mktestdist.sh

Revision 8522, 1.1 kB (checked in by fwarmerdam, 3 years ago)

New

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1 #!/bin/sh
2
3 if [ $# -lt 1 ] ; then
4   echo "Usage: mkgdaldist version [-nologin]"
5   echo
6   echo "Example: mkgdaldist 1.1.4"
7   exit
8 fi
9
10 GDAL_VERSION=$1
11
12 if test "$GDAL_VERSION" != "`cat VERSION`" ; then
13   echo
14   echo "NOTE: local VERSION file (`cat VERSION`) does not match supplied version ($GDAL_VERSION)."
15   echo "      Consider updating local VERSION file, and commiting to CVS."
16   echo
17 fi
18
19 rm -rf dist_wrk 
20 mkdir dist_wrk
21 cd dist_wrk
22
23 export CVSROOT=:pserver:cvsanon@cvs.maptools.org:/cvs/maptools/cvsroot
24
25 if test "$2" = "-nologin" -o "$3" = "-nologin" ; then
26   echo "Skipping login"
27 else
28   echo "Please type anonymous if prompted for a password."
29   cvs login
30 fi
31
32 cvs -Q checkout gdalautotest
33
34 if [ \! -d gdalautotest ] ; then
35   echo "cvs checkout reported an error ... abandoning mktestdist"
36   cd ..
37   rm -rf dist_wrk
38   exit
39 fi
40
41 find gdalautotest -name CVS -exec rm -rf {} \;
42
43 mv gdalautotest gdalautotest-${GDAL_VERSION}
44
45 rm -f ../gdalautotest-${GDAL_VERSION}.tar.gz
46
47 tar cf ../gdalautotest-${GDAL_VERSION}.tar gdalautotest-${GDAL_VERSION}
48 gzip -9 ../gdalautotest-${GDAL_VERSION}.tar
49
50 cd ..
51 rm -rf dist_wrk
Note: See TracBrowser for help on using the browser.