FreeBSD Bugzilla – Attachment 14915 Details for
Bug 27848
New port: du2ps - filter for converting output of du to PostScript file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 7.05 KB, created by
Yoshihiko Sarumaru
on 2001-06-03 05:20:01 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
Yoshihiko Sarumaru
Created:
2001-06-03 05:20:01 UTC
Size:
7.05 KB
patch
obsolete
># 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: ># ># sysutils/ ># sysutils/du2ps ># sysutils/du2ps/files ># sysutils/du2ps/files/patch-aa ># sysutils/du2ps/files/patch-ab ># sysutils/du2ps/files/du2ps.1 ># sysutils/du2ps/pkg-plist ># sysutils/du2ps/pkg-descr ># sysutils/du2ps/pkg-comment ># sysutils/du2ps/distinfo ># sysutils/du2ps/Makefile ># >echo c - sysutils/ >mkdir -p sysutils/ > /dev/null 2>&1 >echo c - sysutils/du2ps >mkdir -p sysutils/du2ps > /dev/null 2>&1 >echo c - sysutils/du2ps/files >mkdir -p sysutils/du2ps/files > /dev/null 2>&1 >echo x - sysutils/du2ps/files/patch-aa >sed 's/^X//' >sysutils/du2ps/files/patch-aa << 'END-of-sysutils/du2ps/files/patch-aa' >X--- du2ps.h.orig Tue Mar 15 18:17:00 1994 >X+++ du2ps.h Fri Jun 1 15:39:04 2001 >X@@ -51,6 +51,8 @@ >X #define FONT_FAMILY "Times-Roman" >X #define LINE_WIDTH 0.5 >X #define HEAD_SEP 5.0 >X+#define A3_WIDTH 841.889764 >X+#define A3_HEIGHT 1190.55118 >X #define A4_WIDTH 595.275591 >X #define A4_HEIGHT 841.889764 >X #define B4_WIDTH 728.503937 >END-of-sysutils/du2ps/files/patch-aa >echo x - sysutils/du2ps/files/patch-ab >sed 's/^X//' >sysutils/du2ps/files/patch-ab << 'END-of-sysutils/du2ps/files/patch-ab' >X--- getopt.c.orig Wed Mar 16 11:41:27 1994 >X+++ getopt.c Fri Jun 1 15:40:02 2001 >X@@ -22,6 +22,7 @@ >X "du2ps [options] < infile > outfile", >X "OPTIONS:", >X " -land ... landscape", >X+ " -a3 ... A3", >X " -b4 ... B4", >X " -b5 ... B5", >X " -us ... US letter", >X@@ -62,6 +63,10 @@ >X i++; >X } else if(!strcmp("-sa", argv[i])){ >X cmp = cmp_alph; >X+ i++; >X+ } else if(!strcmp("-a3", argv[i])){ >X+ paper_width = A3_WIDTH; >X+ paper_height = A3_HEIGHT; >X i++; >X } else if(!strcmp("-b4", argv[i])){ >X paper_width = B4_WIDTH; >END-of-sysutils/du2ps/files/patch-ab >echo x - sysutils/du2ps/files/du2ps.1 >sed 's/^X//' >sysutils/du2ps/files/du2ps.1 << 'END-of-sysutils/du2ps/files/du2ps.1' >X.\" >X.\" Copyleft by nagae@an.ip.titech.ac.jp and mac@research.co.jp >X.\" du2ps.man >X.TH du2ps 1 "Mar 2, 1994" >X.SH NAME >Xdu2ps \- filter for converting output of du to PostScript file >X.SH SYNOPSIS >X.B du2ps >X[ >X.I options >X] >X< >X.I du_out_file >X> >X.I ps_file >X.SH DESCRIPTION >XThe >X.B du2ps >Xreads output of >X.BR du (1), >Xthen generate a figure of hierarchical structure and utilization of >Xdirectory as one page PostScript file. >X.PP >XEach directory is illustrated as rectangle in utilization order with >Xheight corresponding to its utilization, and sub directories are placed >Xbranched from left to right recursively. >X.SH OPTIONS >X.TP >X.B \-land >XLayout in landscape. >XDefault is in portrait. >X.TP >X.B \-sa >XPlace directories in alphabetical order. >XDefault is in utilization order. >X.TP >X.B \-b4 >X.TP >X.B \-b5 >X.TP >X.B \-us >XSwitch page size to B4, B5, or US letter. Default is A4. >X.TP >X.BI \-ff " name" >XSpecify font name for text. Default is Times-Roman. >X.TP >X.BI \-fs " size" >XSpecify font size. Default is 8.0 [pt]. >X.TP >X.BI \-ms " size" >XSpecify margin around page. Default is 50.0 [pt]. >X.TP >X.BI \-lw " size" >XLine width for drawing rectangle area. Default is 0.5 [pt]. >X.TP >X.BI \-ncols " num" >XSpecify number of rectangle columns (maximum directory depth). >XDefault is 7 for portrait and 10 for landscape. >X.TP >X.BI \-eps " width height" >XOutput in EPS format. >X.I Width >Xand >X.I height >Xare the width and height of BoundingBox. >X.SH EXAMPLES >X.B " du | du2ps | lpr >X.IP >XThe most left directory name becomes ``.'', and ``The number of disk >Xblocks used at .'' will be displayed at the upper left corner. >X. >X.B " du /home/taro/work | du2ps | lpr >X.PP >X.B " du ~taro/work | du2ps | lpr >X.IP >XThe most left directory name becomes ``work'', and >X``The number of disk blocks used at /home/taro/work'' >Xwill be displayed at the upper left corner. >X.PP >X.B " du ../../ps | du2ps -us -fs 16 > tmp.ps; gs tmp.ps >X.IP >XThe most left directory name becomes ``ps'', and >X``The number of disk blocks used at ../../ps'' >Xwill be displayed at the upper left corner. >XThe ``-us'' option makes entire page to fit paper, because default size of >XGhostScript is US letter. >X.PP >X.B " du ~taro/work ~taro/bin | du2ps -eps 200 300 > fig1.eps >X.IP >XThe most left directory name becomes ``taro'', and >X``The number of disk blocks used at /home/taro'' >Xwill be display at the upper left corner. >XOutput will be commented with ``%%BoundingBox: 0 0 200 300''. >X.PP >X.B " du work bin | du2ps -eps 100 100 -fs 4 > fig2.eps >X.IP >XThe most left directory name becomes ``..'', and >X``The number of disk blocks used at'' >Xwill be display at the upper left corner. >X.SH SEE ALSO >X.BR du (1), >X.BR xdu (1) >X.SH AUTHORS >XTakanori Nagae <nagae@an.ip.titech.ac.jp> and >XShigeru Makino <mac@research.co.jp> >X.PP >XThe du2ps is based on xdu. >XThe author of xdu is Phillip C. Dykstra <phil@BRL.MIL>. >END-of-sysutils/du2ps/files/du2ps.1 >echo x - sysutils/du2ps/pkg-plist >sed 's/^X//' >sysutils/du2ps/pkg-plist << 'END-of-sysutils/du2ps/pkg-plist' >Xbin/du2ps >END-of-sysutils/du2ps/pkg-plist >echo x - sysutils/du2ps/pkg-descr >sed 's/^X//' >sysutils/du2ps/pkg-descr << 'END-of-sysutils/du2ps/pkg-descr' >XThe du2ps reads output of du(1), then generate a figure of >Xherarchical structure and utilization of each directory. >X >XThe du2ps is a similar program to xdu, but it produces result as >Xa PostScript file. >X >XThe default paper is ISO A4, but you can select Letter or ISO A3/B4/B5. >XYou can also specify font name, font size, number of columns and other >Xoptions. >X >XAuthor: Takanori Nagae <nagae@an.ip.titech.ac.jp> and >X Shigeru Makino <mac@research.co.jp> >XWWW: http://www.shobi-u.ac.jp/~tnagae/ >X >X- >XYoshihiko Sarumaru <mistral@imasy.or.jp> >END-of-sysutils/du2ps/pkg-descr >echo x - sysutils/du2ps/pkg-comment >sed 's/^X//' >sysutils/du2ps/pkg-comment << 'END-of-sysutils/du2ps/pkg-comment' >XFilter for converting output of du to PostScript file >END-of-sysutils/du2ps/pkg-comment >echo x - sysutils/du2ps/distinfo >sed 's/^X//' >sysutils/du2ps/distinfo << 'END-of-sysutils/du2ps/distinfo' >XMD5 (du2ps-2.1.tgz) = f39e4724cb1a8831f0355fbeb8d819a6 >END-of-sysutils/du2ps/distinfo >echo x - sysutils/du2ps/Makefile >sed 's/^X//' >sysutils/du2ps/Makefile << 'END-of-sysutils/du2ps/Makefile' >X# New ports collection makefile for: du2ps >X# Date created: 31 May 2001 >X# Whom: Yoshihiko Sarumaru <mistral@imasy.or.jp> >X# >X# $FreeBSD:$ >X# >X >XPORTNAME= du2ps >XPORTVERSION= 2.1 >XCATEGORIES= sysutils >XMASTER_SITES= http://www.shobi-u.ac.jp/~tnagae/src/ps-c/du2ps/du2ps-2.1/ >XEXTRACT_SUFX= .tgz >X >XMAINTAINER= mistral@imasy.or.jp >X >X# Nkf is required for just converting character code of japanese manual >XBUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf >X >XMAKEFILE= makefile >XALL_TARGET= >X >XMAN1= du2ps.1 >XMANLANG= "" ja >X >Xdo-install: >X ${INSTALL_PROGRAM} ${WRKSRC}/du2ps ${PREFIX}/bin/du2ps >X ${INSTALL_MAN} ${FILESDIR}/du2ps.1 ${PREFIX}/man/man1/du2ps.1 >X nkf -e ${WRKSRC}/du2ps.man > ${WRKDIR}/du2ps.1.ja >X ${INSTALL_MAN} ${WRKDIR}/du2ps.1.ja ${PREFIX}/man/ja/man1/du2ps.1 >X >X.include <bsd.port.mk> >END-of-sysutils/du2ps/Makefile >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 27848
: 14915