From: dpage Date: Tue, 29 Sep 2009 12:54:14 +0000 (+0000) Subject: Try to make sure that we get a useful SVN version number in the build, if we're using... X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=6a3fdf7dc8f7a7d483aab14a773b575649283c40;p=users%2Fquan74%2Fpgadmin-import.git Try to make sure that we get a useful SVN version number in the build, if we're using git-svn. git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@8053 a7884b65-44f6-0310-8a51-81a127f17b15 --- diff --git a/pgadmin/Makefile.am b/pgadmin/Makefile.am index 94e28d5dc..3fb17a68b 100644 --- a/pgadmin/Makefile.am +++ b/pgadmin/Makefile.am @@ -26,6 +26,7 @@ EXTRA_DIST = \ $(srcdir)/include/svnversion.cpp: test -f $(srcdir)/include/svnversion.cpp || touch $(srcdir)/include/svnversion.cpp test -d $(srcdir)/.svn && ( V=`svnversion $(srcdir)/..` && OV=`cat $(srcdir)/include/svnversion.h | cut -d' ' -f3|tr -d '"'` ; if [ "$$V" != "$$OV" ]; then echo "#define VERSION_SVN \"$$V\"" > $(srcdir)/include/svnversion.h ; fi ) || true + test -f $(srcdir)/include/svnversion.h -o -d $(srcdir)/.git/svn || echo "#define VERSION_SVN \"$$(git svn info | grep Revision: | sed -e 's/Revision: //'):$$(git svn info | grep Last\ Changed\ Rev: | sed -e 's/Last Changed Rev: //')\"" > $(srcdir)/include/svnversion.h test -f $(srcdir)/include/svnversion.h || echo "#define VERSION_SVN \"unknown\"" > $(srcdir)/include/svnversion.h TMP_ui =