Project

General

Profile

Bug #377 ยป libmagic.diff

pavalos, 11/12/2006 05:47 AM

View differences:

Makefile 12 Nov 2006 05:32:15 -0000
30 30
MLINKS+=	libmagic.3 magic_compile.3
31 31
MLINKS+=	libmagic.3 magic_load.3
32 32

  
33
CLEANFILES+=	magic magic.mgc magic.mime.mgc magic.mime.lnk libmagic.3
33
CLEANFILES+=	magic magic.mgc magic.mime.mgc magic.mime.lnk libmagic.man libmagic.3
34 34

  
35 35
FILES=		magic magic.mgc ${MAGICDIR}/magic.mime magic.mime.mgc
36 36
FILESDIR=	/usr/share/misc
......
38 38
MAGFILES=	${MAGICDIR}/Header ${MAGICDIR}/Localstuff\
39 39
		${MAGICDIR}/Magdir/[a-z]*
40 40

  
41
libmagic.3: ${CONTRIBDIR}/doc/libmagic.man
41
libmagic.man: ${CONTRIBDIR}/doc/libmagic.man
42
	patch -o ${.TARGET} ${.ALLSRC} libmagic.man.patch
43

  
44
libmagic.3: libmagic.man
42 45
	    sed	-e s@__CSECTION__@1@g \
43 46
		-e s@__FSECTION__@5@g \
44 47
		-e s@__VERSION__@${VERSION}@g \
libmagic.man.patch 12 Nov 2006 04:55:59 -0000
1
Index: libmagic.man
2
===================================================================
3
RCS file: /cvs/src/contrib/file-4/doc/libmagic.man,v
4
retrieving revision 1.1
5
diff -u -r1.1 libmagic.man
6
--- libmagic.man	12 Nov 2006 04:51:56 -0000	1.1
7
+++ libmagic.man	12 Nov 2006 04:53:21 -0000
8
@@ -120,7 +120,9 @@
9
 The
10
 .Fn magic_errno
11
 function returns the last operating system error number
12
-.Pq .Xr errno 3
13
+.Po
14
+.Xr errno 2
15
+.Pc
16
 that was encountered by a system call.
17
 .Pp
18
 The
    (1-1/1)