summaryrefslogtreecommitdiffstats
path: root/usr.bin/file
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-07-30 03:50:04 +0000
committerobrien <obrien@FreeBSD.org>2001-07-30 03:50:04 +0000
commit5a7612fe44b345e9b485a74e787765d0e3435b83 (patch)
tree62195b6e5a015e2bef6c8e93c248ccf751d1dc02 /usr.bin/file
parent537bfba00e9f4dc0df213d9f551a5b92a7bc9010 (diff)
downloadFreeBSD-src-5a7612fe44b345e9b485a74e787765d0e3435b83.zip
FreeBSD-src-5a7612fe44b345e9b485a74e787765d0e3435b83.tar.gz
Update to version 3.36.
I had to hack print.c due to some new bits that only compile on NetBSD. I could not figure what the analogous FreeBSD bits are.
Diffstat (limited to 'usr.bin/file')
-rw-r--r--usr.bin/file/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/file/Makefile b/usr.bin/file/Makefile
index e9c186a..b7d212e 100644
--- a/usr.bin/file/Makefile
+++ b/usr.bin/file/Makefile
@@ -31,11 +31,11 @@ SRCDIR= ${.CURDIR}/../../contrib/file
.PATH: ${SRCDIR}
CFLAGS+= -DMAGIC='"$(MAGICFILE)"' -DBUILTIN_ELF -DELFCORE -DHAVE_CONFIG_H
-CFLAGS+= -I${.CURDIR}
+CFLAGS+= -I${.CURDIR} -I${SRCDIR}
PROG= file
SRCS= file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \
- compress.c is_tar.c readelf.c print.c
+ compress.c is_tar.c readelf.c print-hacked.c
# compress.c is_tar.c readelf.c internat.c print.c
MAN= file.1 magic.5
@@ -51,6 +51,10 @@ all: file magic
magic: $(MAGFILES)
cat $(MAGFILES) > $(.TARGET)
+CLEANFILES+= print-hacked.c
+print-hacked.c: print.c
+ sed -e 's|daylight|0/*daylight*/|g' ${.ALLSRC} > ${.TARGET}
+
beforeinstall:
$(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m $(MAGICMODE) \
magic $(DESTDIR)$(MAGICFILE)
OpenPOWER on IntegriCloud