Makefile for maintain comments.ja.

This commit is contained in:
Jun Kuriyama 2000-05-22 10:25:58 +00:00
parent 535253fdc8
commit d55280e7f0
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=7230

25
ja/ports/Makefile.ja Normal file
View file

@ -0,0 +1,25 @@
# $FreeBSD$
CVSROOT?= /home/ncvs
PERL?= /usr/bin/perl
CVS_OPT?= -d ${CVSROOT} -R
CUR_EN!= head ${CVSROOT}/ports/INDEX,v |\
${PERL} -ne 'print $$1 if (/^head\t(.*);/)'
OLD_EN!= ${PERL} -ne 'print $$1 if (m@Original revision: /ports/INDEX (.*)@)' comments.ja
all: comments.en.${CUR_EN} comments.en.${OLD_EN}
comments.en.${CUR_EN}:
awk -F\| '{ printf("%s|%s\n", $$2, $$4); }' INDEX | sed -e 's@^/usr/ports/@@' > ${.TARGET}
comments.en.${OLD_EN}:
cvs ${CVS_OPT} co -r ${OLD_EN} -p ports/INDEX |\
awk -F\| '{ printf("%s|%s\n", $$2, $$4); }' |\
sed -e 's@^/usr/ports/@@' > ${.TARGET}
clean:
rm -f comments.en.*
.include "../../web.mk"