summaryrefslogtreecommitdiffstats
path: root/usr.bin/file/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-12-11 14:09:12 +0000
committerjoerg <joerg@FreeBSD.org>1996-12-11 14:09:12 +0000
commit2f3249e30505ccc6b0eb2fd1b892f3e2813453ce (patch)
tree97aba5034f2e97275813d181d18b4b2128f57e57 /usr.bin/file/Makefile
parentee57f46ce0a7ad65af6b01f68b94eb2b9d315d79 (diff)
downloadFreeBSD-src-2f3249e30505ccc6b0eb2fd1b892f3e2813453ce.zip
FreeBSD-src-2f3249e30505ccc6b0eb2fd1b892f3e2813453ce.tar.gz
Add another matching algorithhm to do heuristics for international
language text files. Should finally close PR # bin/1925: file does not consider cyrillic text..., though i've never got any response from the originator about my suggestion. While i was at it, also move out the `magic' file to /usr/share/misc, there's nothing that magic with this file to justify its life under /etc.
Diffstat (limited to 'usr.bin/file/Makefile')
-rw-r--r--usr.bin/file/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/file/Makefile b/usr.bin/file/Makefile
index efac409..d1ff65d 100644
--- a/usr.bin/file/Makefile
+++ b/usr.bin/file/Makefile
@@ -1,6 +1,6 @@
# Makefile for file(1) cmd.
# Copyright (c) Ian F. Darwin 86/09/01 - see LEGAL.NOTICE.
-# @(#)$Id: Makefile,v 1.4 1995/07/25 00:36:03 bde Exp $
+# @(#)$Id: Makefile,v 1.5 1996/08/17 22:27:08 wosch Exp $
#
# This software is not subject to any license of the American Telephone
# and Telegraph Company or of the Regents of the University of California.
@@ -23,7 +23,7 @@
# 4. This notice may not be removed or altered.
#
# Hacked and dismembered for bmake (Geoff Rehmet).
-MAGIC= /etc/magic
+MAGIC= /usr/share/misc/magic
MAGICOWN= bin
MAGICGRP= bin
MAGICMODE= 444
@@ -33,7 +33,7 @@ CFLAGS+= -DMAGIC='"$(MAGIC)"'
PROG= file
SRCS= file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \
- compress.c is_tar.c print.c
+ compress.c is_tar.c print.c international.c
MAN1= file.1
MAN5= magic.5
@@ -51,7 +51,7 @@ magic: $(MAGFILES)
cat $(MAGFILES) > $(.TARGET)
# called from /usr/src/etc/Makefile
-etc-magic:
+beforeinstall:
${INSTALL} -c -o $(MAGICOWN) -g $(MAGICGRP) -m $(MAGICMODE) magic \
$(DESTDIR)$(MAGIC)
OpenPOWER on IntegriCloud