From 112d4f3474b8cb734598b276142e985cc4078a0f Mon Sep 17 00:00:00 2001 From: vlefevre Date: Thu, 26 Feb 2009 01:26:45 +0000 Subject: Makefile.am: do not check libtool -version-info value if the VERSION file contains "-dev". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6019 280ebfd0-de03-0410-8827-d642c229c3f4 --- Makefile.am | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index e39bef266..11797da25 100644 --- a/Makefile.am +++ b/Makefile.am @@ -66,8 +66,11 @@ tune: $(MAKE) $(AM_MAKEFLAGS) libmpfr.la # In a "make dist", check that libtool -version-info value is up-to-date. +# But if the VERSION file contains "-dev", this is not checked. # Note: this is a heuristic, to detect some mistakes. dist-hook: - grep -q "`sed -n 's/^\([0-9]*\.[0-9]*\).*/\1/p' VERSION`.x" $(srcdir)/Makefile.am - test "`sed -n 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/p' VERSION`" = \ - "`sed -n 's/.*-version-info [0-9]*:\([0-9]*\):.*/\1/p' $(srcdir)/Makefile.am`" + grep -q -e -dev $(srcdir)/VERSION || \ + grep -q "`sed -n 's/^\([0-9]*\.[0-9]*\).*/\1/p' $(srcdir)/VERSION`.x" $(srcdir)/Makefile.am + grep -q -e -dev $(srcdir)/VERSION || \ + test "`sed -n 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/p' $(srcdir)/VERSION`" = \ + "`sed -n 's/.*-version-info [0-9]*:\([0-9]*\):.*/\1/p' $(srcdir)/Makefile.am`" -- cgit v1.2.1