Skip to content
Permalink
Browse files
Don't rewrite qgssvnversion.h unless svnversion has changed.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5721 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed Aug 21, 2006
1 parent 5d4bec3 commit 87ac96cc87a6143604db74958c20d513bccdad69
Showing with 4 additions and 2 deletions.
  1. +4 −2 Makefile.am
@@ -63,5 +63,7 @@ BUILT_SOURCES = qgssvnversion.h

.PHONY : qgssvnversion.h
qgssvnversion.h:
@ echo "#define QGSSVNVERSION \"`svnversion .`\"" > qgssvnversion.h

@QGSSVNDEF="#define QGSSVNVERSION \"`svnversion .`\"" && \
if [ "`grep QGSSVNVERSION qgssvnversion.h 2>/dev/null`" != "$$QGSSVNDEF" ]; then \
echo $$QGSSVNDEF > qgssvnversion.h; \
fi

0 comments on commit 87ac96c

Please sign in to comment.