Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/file/lib Get version from the configure script



details:   https://anonhg.NetBSD.org/src/rev/c5e6557787c2
branches:  trunk
changeset: 791788:c5e6557787c2
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 01 20:01:14 2013 +0000

description:
Get version from the configure script

diffstat:

 external/bsd/file/lib/Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 422064103477 -r c5e6557787c2 external/bsd/file/lib/Makefile
--- a/external/bsd/file/lib/Makefile    Sun Dec 01 19:32:14 2013 +0000
+++ b/external/bsd/file/lib/Makefile    Sun Dec 01 20:01:14 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.4 2013/08/13 19:29:45 drochner Exp $
+#      $NetBSD: Makefile,v 1.5 2013/12/01 20:01:14 christos Exp $
 #
 
 USE_FORT?= yes # data driven bugs?
@@ -33,11 +33,13 @@
 INCS=          magic.h
 INCSDIR=       /usr/include
 
+VERSION != ${TOOL_SED} -ne "s/^PACKAGE_VERSION='\([0-9]*\)\.\([0-9]*\)'/\1\2/p"  ${DIST}/configure
+
 COPTS.softmagic.c = -Wno-format-nonliteral
 
 magic.c:       magic.h
 magic.h:        magic.h.in
-       ${TOOL_SED} -e "s/X.YY/514/" < ${.ALLSRC} > ${.TARGET}
+       ${TOOL_SED} -e "s/X.YY/${VERSION}/" < ${.ALLSRC} > ${.TARGET}
 CLEANFILES+=   magic.h
 
 .include <bsd.lib.mk>



Home | Main Index | Thread Index | Old Index