Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/file switch to use new compressed magic file: magic.mgc



details:   https://anonhg.NetBSD.org/src/rev/f24e29af3346
branches:  trunk
changeset: 507617:f24e29af3346
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Mar 27 00:48:59 2001 +0000

description:
switch to use new compressed magic file: magic.mgc

diffstat:

 usr.bin/file/Makefile |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 9a6c7fceeeb6 -r f24e29af3346 usr.bin/file/Makefile
--- a/usr.bin/file/Makefile     Mon Mar 26 23:57:17 2001 +0000
+++ b/usr.bin/file/Makefile     Tue Mar 27 00:48:59 2001 +0000
@@ -1,10 +1,10 @@
-#      $NetBSD: Makefile,v 1.26 2000/10/11 14:46:03 is Exp $
+#      $NetBSD: Makefile,v 1.27 2001/03/27 00:48:59 pooka Exp $
 
 .include <bsd.own.mk>
 
 WFORMAT=       1
 MFILESDIR=     /usr/share/misc
-MFILES=                magic magic.mime
+MFILES=                magic magic.mgc magic.mime
 MAGIC=         ${MFILESDIR}/magic
 .if ${MKSHARE} != "no"
 FILESDIR=      ${MFILESDIR}
@@ -15,7 +15,7 @@
 SRCS=          file.c apprentice.c fsmagic.c softmagic.c ascmagic.c is_tar.c \
                print.c compress.c readelf.c 
 CPPFLAGS+=     -DMAGIC='"$(MAGIC)"' -DHAVE_CONFIG_H -I${.CURDIR}
-CPPFLAGS+=     -DBUILTIN_ELF -DELFCORE
+CPPFLAGS+=     -DQUICK -DBUILTIN_ELF -DELFCORE
 MAN=           file.1 magic.5
 
 CLEANFILES+=   magic
@@ -30,6 +30,7 @@
 .if ${MKSHARE} != "no"
 magic:         $(MAGFILES)
        cat $(MAGFILES) > $(.TARGET)
+       $(.CURDIR)/$(PROG) -C -m $(.TARGET)
 .else
 magic:
 .endif



Home | Main Index | Thread Index | Old Index