From owner-ports-jp@jp.freebsd.org  Fri Mar 30 17:56:43 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id RAA03744;
	Fri, 30 Mar 2001 17:56:43 +0900 (JST)
	(envelope-from owner-ports-jp@jp.FreeBSD.org)
Received: from tortoise.jp.freebsd.org (root@tortoise.jp.FreeBSD.ORG [210.157.158.41])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id RAA03739
	for <ports-jp@jp.FreeBSD.org>; Fri, 30 Mar 2001 17:56:43 +0900 (JST)
	(envelope-from mistral@imasy.or.jp)
Received: from ns5.sony.co.jp ([3ffe:50f:10:1:290:27ff:fe5c:d112])
	by tortoise.jp.freebsd.org (8.11.3+3.4W/8.11.3) with ESMTP/inet6 id f2U8t0b19182
	for <ports-jp@jp.FreeBSD.org>; Fri, 30 Mar 2001 17:55:21 +0900 (JST)
	(envelope-from mistral@imasy.or.jp)
Received: from mail3.sony.co.jp (gatekeeper8.Sony.CO.JP [202.238.80.22])
	by ns5.sony.co.jp (R8) with ESMTP id f2U8sk307135
	for <ports-jp@jp.FreeBSD.org>; Fri, 30 Mar 2001 17:54:46 +0900 (JST)
Received: from mail3.sony.co.jp (localhost [127.0.0.1])
	by mail3.sony.co.jp (R8) with ESMTP id f2U8slo06078
	for <ports-jp@jp.FreeBSD.org>; Fri, 30 Mar 2001 17:54:47 +0900 (JST)
Received: from mistral.imasy.or.jp ([43.1.172.41])
	by mail3.sony.co.jp (R8) with ESMTP id f2U8skS06074
	for <ports-jp@jp.FreeBSD.org>; Fri, 30 Mar 2001 17:54:46 +0900 (JST)
Received: (from yohta@localhost)
	by mistral.imasy.or.jp (8.11.3/3.7Wpl2-010215) id f2U8si621175;
	Fri, 30 Mar 2001 17:54:45 +0900 (JST)
From: mistral@imasy.or.jp (Yoshihiko SARUMARU)
To: ports-jp@jp.FreeBSD.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
X-Mailer: mnews [version 1.22PL5] 2001-02/07(Wed)
Date: Fri, 30 Mar 2001 17:54:44 +0900
Message-ID: <010330175444.M0121153@mistral.imasy.or.jp>
Reply-To: ports-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: ports-jp 10885
Subject: [ports-jp 10885] bdfresize
Errors-To: owner-ports-jp@jp.freebsd.org
Sender: owner-ports-jp@jp.freebsd.org
X-Originator: mistral@imasy.or.jp

$B1n4]$G$9!#(B

$BI,MW$KGw$i$l$?$N$G(B bdfresize $B$N(B port $B:n$j$^$7$?!#(B
review $B$*4j$$$7$^$9!#(B

- isnumber $B$,FbB"$N$b$N$H(B libc $B$N$b$N$H%P%C%F%#%s%0$7$F$$$k$N$G(B
  $BFbB"$N$b$N$r(B my_isnumber $B$HCV49(B
- gets(linebuf) $B$r(B fgets(linebuf, BUFSIZE -1, stdin) $B$KJQ99(B

$B$"$?$j$,$d$dIT0B$G$9!#(B


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	bdfresize/
#	bdfresize/files
#	bdfresize/files/patch-aa
#	bdfresize/Makefile
#	bdfresize/distinfo
#	bdfresize/pkg-plist
#	bdfresize/pkg-comment
#	bdfresize/pkg-descr
#
echo c - bdfresize/
mkdir -p bdfresize/ > /dev/null 2>&1
echo c - bdfresize/files
mkdir -p bdfresize/files > /dev/null 2>&1
echo x - bdfresize/files/patch-aa
sed 's/^X//' >bdfresize/files/patch-aa << 'END-of-bdfresize/files/patch-aa'
X--- bdfresize.c.orig	Wed Oct 14 15:31:13 1992
X+++ bdfresize.c	Fri Mar 30 17:41:09 2001
X@@ -291,13 +291,13 @@
X 
X 	if ((q = index(p = q + 1, '-')) == NULL) goto parseerror;
X 	*q = '\0';
X-	if (!isnumber(p)) { fputs(p, stdout); putchar('-'); goto parseerror; }
X+	if (!my_isnumber(p)) { fputs(p, stdout); putchar('-'); goto parseerror; }
X 	sprintf(buf + strlen(buf), "%d", HRESIZE(atoi(p))); strcat(buf, "-");
X 	/* PIXEL_SIZE */
X 
X 	if ((q = index(p = q + 1, '-')) == NULL) goto parseerror;
X 	*q = '\0';
X-	if (!isnumber(p)) { fputs(p, stdout); putchar('-'); goto parseerror; }
X+	if (!my_isnumber(p)) { fputs(p, stdout); putchar('-'); goto parseerror; }
X 	sprintf(buf + strlen(buf), "%d", HRESIZE(atoi(p))); strcat(buf, "-");
X 	/* POINT_SIZE */
X 
X@@ -318,7 +318,7 @@
X 
X 	if ((q = index(p = q + 1, '-')) == NULL) goto parseerror;
X 	*q = '\0';
X-	if (!isnumber(p)) { fputs(p, stdout); putchar('-'); goto parseerror; }
X+	if (!my_isnumber(p)) { fputs(p, stdout); putchar('-'); goto parseerror; }
X 	sprintf(buf + strlen(buf), "%d", WRESIZE(atoi(p))); strcat(buf, "-");
X 	/* AVERAGE_WIDTH */
X 
X@@ -344,7 +344,7 @@
X 
X 
X int
X-isnumber(p)
X+my_isnumber(p)
X char	*p;
X {
X 	if (!*p) return 0;
X@@ -427,7 +427,7 @@
X 
X get_line()
X {
X-	while (gets(linebuf) != NULL) {
X+	while (fgets(linebuf, BUFSIZE -1, stdin) != NULL) {
X 		line ++;
X 		if (linebuf[0] == '\0' || beginwith(linebuf, "COMMENT")) {
X 			put_line();
END-of-bdfresize/files/patch-aa
echo x - bdfresize/Makefile
sed 's/^X//' >bdfresize/Makefile << 'END-of-bdfresize/Makefile'
X# New ports collection makefile for:	bdfresize-1.4
X# Date created:		30 March 2001
X# Whom:			Yoshihiko Sarumaru <mistral@imasy.or.jp>
X#
X# $FreeBSD: $
X#
X
XPORTNAME=	bdfresize
XPORTVERSION=	1.4
XCATEGORIES=	x11-fonts
XMASTER_SITES=	ftp://ftp.cs.titech.ac.jp/pub/X11/contrib/Local/
XEXTRACT_SUFX=	.tar.Z
X
XMAINTAINER=	mistral@imasy.or.jp
X
XUSE_IMAKE=	yes
XMAN1=		bdfresize.1
X
X.include <bsd.port.mk>
END-of-bdfresize/Makefile
echo x - bdfresize/distinfo
sed 's/^X//' >bdfresize/distinfo << 'END-of-bdfresize/distinfo'
XMD5 (bdfresize-1.4.tar.Z) = bbfb20e97c504873b572a546c5b2596b
END-of-bdfresize/distinfo
echo x - bdfresize/pkg-plist
sed 's/^X//' >bdfresize/pkg-plist << 'END-of-bdfresize/pkg-plist'
Xbin/bdfresize
END-of-bdfresize/pkg-plist
echo x - bdfresize/pkg-comment
sed 's/^X//' >bdfresize/pkg-comment << 'END-of-bdfresize/pkg-comment'
XResize BDF format font
END-of-bdfresize/pkg-comment
echo x - bdfresize/pkg-descr
sed 's/^X//' >bdfresize/pkg-descr << 'END-of-bdfresize/pkg-descr'
XBdfresize  is  a  command to magnify or reduce fonts which are described
Xwith the standard BDF format.   If  bdf-file is  not specified, it reads
Xfrom stdin.  Bdfresize outputs the result to stdout in BDF format.   Some
XCOMMENT  lines are  inserted  to  the result font.  FONT name is modified
Xdepending on the resize factor if the name is described in XLFD  format.
XSIZE, FONTBOUNDINGBIX, SWIDTH, DWIDTH, BBX and some property lines are also
Xmodified.   Other  lines are  copied  from  source.   If a syntax error
Xoccurs in a source font, bdfresize notices it and stops the whole process. 
X
X				Yoshihiko Sarumaru <mistral@imasy.or.jp>
END-of-bdfresize/pkg-descr
exit



--
$B1n4]K'I'(B (Yoshihiko SARUMARU)
mail: mistral@imasy.or.jp       web: http://www.imasy.or.jp/~mistral/
