Skip to content
Permalink
Browse files
Don't rewrite qgssvnversion.h unless svnversion has changed.
git-svn-id: http://svn.osgeo.org/qgis/trunk@5721 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed Aug 21, 2006
1 parent de503b4 commit aac3bee945234b12b7ae90c546a565f7dddac5b5
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 aac3bee

Please sign in to comment.