svn revision 00000 to exported (no need for backport)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@68141 15284696-431f-4ddb-bdfa-cd5b030d7da7
py3
martinl 2016-03-25 08:32:44 +00:00
parent be501a7e4a
commit b1abd79186
3 changed files with 649 additions and 696 deletions

1337
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -126,12 +126,14 @@ changequote(,)
LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
changequote([,])
GRASS_VERSION_SVN=00000
GRASS_VERSION_SVN="exported"
AC_PATH_PROG(SVN_VERSION, svnversion, no)
if test "$SVN_VERSION" != "no" ; then
GRASS_VERSION_SVN=`$SVN_VERSION -c | cut -f2 -d:`
if test "$GRASS_VERSION_SVN" = "exported" -o "$GRASS_VERSION_SVN" = "Unversioned directory" ; then
GRASS_VERSION_SVN=00000
GRASS_VERSION_SVN="exported"
else
GRASS_VERSION_SVN="r$GRASS_VERSION_SVN"
fi
fi

View File

@ -96,7 +96,7 @@ $(ETC)/winlocale$(EXE): $(OBJDIR)/winlocale.o
$(ETC)/VERSIONNUMBER:
rm -f $@
@if [ -n "$(GRASS_VERSION_SVN)" ] ; then \
echo "$(GRASS_VERSION_NUMBER) r$(GRASS_VERSION_SVN)" > $@ ; \
echo "$(GRASS_VERSION_NUMBER) $(GRASS_VERSION_SVN)" > $@ ; \
else \
echo "$(GRASS_VERSION_NUMBER)" > $@ ; \
fi