aboutsummaryrefslogtreecommitdiff
path: root/japanese/man-doc
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>1998-10-01 16:47:26 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>1998-10-01 16:47:26 +0000
commit025ea916f9335e5f046c71121d34d458235d9b72 (patch)
tree089a8bfc3cb6e11f5a4b74f2e220e053c194fb99 /japanese/man-doc
parenta271f9a0c364a512a405a5541c9f5f62ed950b1c (diff)
downloadports-025ea916f9335e5f046c71121d34d458235d9b72.tar.gz
ports-025ea916f9335e5f046c71121d34d458235d9b72.zip
Notes
Diffstat (limited to 'japanese/man-doc')
-rw-r--r--japanese/man-doc/Makefile27
1 files changed, 25 insertions, 2 deletions
diff --git a/japanese/man-doc/Makefile b/japanese/man-doc/Makefile
index 738a7eae27f4..1a4669a17563 100644
--- a/japanese/man-doc/Makefile
+++ b/japanese/man-doc/Makefile
@@ -3,7 +3,7 @@
# Date created: 6 January 1997
# Whom: Kiriyama Kazuhiko <kiri@kiri.toba-cmt.ac.jp>
#
-# $Id: Makefile,v 1.18 1998/03/20 16:30:27 itojun Exp $
+# $Id: Makefile,v 1.19 1998/04/26 22:05:15 itojun Exp $
#
DISTNAME= jpman-2.2
@@ -17,8 +17,8 @@ PREFIX?= /usr
NO_CHECKSUM= yes
NO_MTREE= yes
WRKSRC= ${WRKDIR}/man
+PLIST= ${WRKDIR}/PLIST
-LANGNAME= ja
MANSECS= 1 5 8
JAMANDIR?= /usr/opt/doc/ja/man
@@ -35,9 +35,32 @@ do-extract:
.for sec in ${MANSECS}
@if [ -d ${JAMANDIR}/man${sec} ]; then \
${CP} -R ${JAMANDIR}/man${sec} ${WRKSRC}/ ; \
+ ${ECHO} >>${WRKSRC}/man${sec}/Makefile; \
+ ${ECHO} pages-list: >>${WRKSRC}/man${sec}/Makefile; \
+ ${ECHO} " @\$${ECHO} \$${MAN${sec}} \$${MLINKS}" \
+ >>${WRKSRC}/man${sec}/Makefile; \
fi
.endfor
+post-build:
+ @${RM} -f ${PLIST}
+ @for sec in ${MANSECS}; do \
+ if [ -d ${WRKSRC}/man$${sec} ]; then \
+ cd ${WRKSRC}/man$${sec}; \
+ list=`${MAKE} pages-list`; \
+ set `${ECHO} $$list " "|${SED} 's/\.\([^.]*\) /.\1 \1 /g'`; \
+ while : ; do \
+ case $$# in \
+ 0) break;; \
+ [1]) ${ECHO} "can not happen"; break;; \
+ esac; \
+ ${ECHO} share/man/ja/man$$2/$$1.gz; shift 2; \
+ done; \
+ fi; \
+ done|sort|uniq >>${PLIST}
+ @${ECHO} "@exec ln -sf %D/share/man/ja %D/share/man/ja_JP.EUC" >>${PLIST}
+ @${ECHO} "@unexec ${RM} -f %D/share/man/ja_JP.EUC" >>${PLIST}
+
pre-install:
.for sec in ${MANSECS}
@${MKDIR} ${PREFIX}/share/man/ja/man${sec}