Ensure we always have an svnversion.h
authordpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Tue, 29 Sep 2009 12:25:26 +0000 (12:25 +0000)
committerdpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Tue, 29 Sep 2009 12:25:26 +0000 (12:25 +0000)
git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@8051 a7884b65-44f6-0310-8a51-81a127f17b15

pgadmin/Makefile.am

index bc043f46a945a92467213c92ca073d3aa4138324..94e28d5dcf5577541e94fe8407580e75f443f7e6 100644 (file)
@@ -26,7 +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 || echo "#define VERSION_SVN \"unknown\"" > $(srcdir)/include/svnversion.h
 TMP_ui = 
 
 # Include all the sub-Makefiles