Skip to content

Commit

Permalink
added stuff related to VERSION file
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/gdal/trunk@2049 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information
warmerdam committed Mar 1, 2001
1 parent f2ab58c commit b023527
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion mkgdaldist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@
if [ $# -lt 1 ] ; then
echo "Usage: mkgdaldist version [-install]"
echo
echo "Example: mkgdaldist 1.1.1"
echo "Example: mkgdaldist 1.1.4"
exit
fi

GDAL_VERSION=$1
COMPRESSED_VERSION=`echo $GDAL_VERSION | tr -d .`

if test "$GDAL_VERSION" != "`cat VERSION`" ; then
echo
echo "NOTE: local VERSION file (`cat VERSION`) does not match supplied version ($GDAL_VERSION)."
echo " Consider updating local VERSION file, and commiting to CVS."
echo
fi

rm -rf dist_wrk
mkdir dist_wrk
cd dist_wrk
Expand All @@ -23,13 +30,18 @@ cvs checkout gdal

if [ \! -d gdal ] ; then
echo "cvs checkout reported an error ... abandoning mkgdaldist"
cd ..
rm -rf dist_wrk
exit
fi

find gdal -name CVS -exec rm -rf {} \;

rm -rf gdal/viewer

rm -f gdal/VERSION
echo $GDAL_VERSION > gdal/VERSION

mv gdal gdal-${GDAL_VERSION}

rm -f ../gdal-${GDAL_VERSION}.tar.gz ../gdal${COMPRESSED_VERSION}.zip
Expand Down

0 comments on commit b023527

Please sign in to comment.