From 56c5ee7e23a873e8bd28e5b0381425b4116544f1 Mon Sep 17 00:00:00 2001 From: dmcmahill Date: Thu, 31 Aug 2000 17:21:58 +0000 Subject: -fix building of manpage (don't try and use docbook-to-man). Instead supply the resulting manpage as a file. --- cad/gwave/Makefile | 5 +- cad/gwave/files/patch-sum | 3 +- cad/gwave/files/sp2sp.1 | 127 +++++++++++++++++++++++++++++++++++++++++++++ cad/gwave/patches/patch-ab | 11 ++++ cad/gwave/pkg/PLIST | 8 ++- 5 files changed, 151 insertions(+), 3 deletions(-) create mode 100644 cad/gwave/files/sp2sp.1 create mode 100644 cad/gwave/patches/patch-ab (limited to 'cad/gwave') diff --git a/cad/gwave/Makefile b/cad/gwave/Makefile index 308c9a4da2f..026379baa3e 100644 --- a/cad/gwave/Makefile +++ b/cad/gwave/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2000/08/30 17:49:36 dmcmahill Exp $ +# $NetBSD: Makefile,v 1.3 2000/08/31 17:21:58 dmcmahill Exp $ # DISTNAME= gwave-20000809 @@ -13,4 +13,7 @@ DEPENDS+= plotutils-*:../../graphics/plotutils GNU_CONFIGURE= YES +post-extract: + ${CP} ${FILESDIR}/sp2sp.1 ${WRKSRC}/doc/sp2sp.1 + .include "../../mk/bsd.pkg.mk" diff --git a/cad/gwave/files/patch-sum b/cad/gwave/files/patch-sum index 7c23bda79c4..90b1a7fbe8e 100644 --- a/cad/gwave/files/patch-sum +++ b/cad/gwave/files/patch-sum @@ -1,3 +1,4 @@ -$NetBSD: patch-sum,v 1.2 2000/08/30 17:49:37 dmcmahill Exp $ +$NetBSD: patch-sum,v 1.3 2000/08/31 17:21:59 dmcmahill Exp $ MD5 (patch-aa) = e2d9da32736ed54259faed906fecfffd +MD5 (patch-ab) = 80a775ef7195399f79a7b8bfedd067af diff --git a/cad/gwave/files/sp2sp.1 b/cad/gwave/files/sp2sp.1 new file mode 100644 index 00000000000..fcf75484466 --- /dev/null +++ b/cad/gwave/files/sp2sp.1 @@ -0,0 +1,127 @@ +.\" This -*- nroff -*- file has been generated from +.\" DocBook SGML with docbook-to-man on Debian GNU/Linux. +...\" +...\" transcript compatibility for postscript use. +...\" +...\" synopsis: .P! +...\" +.de P! +\\&. +.fl \" force out current output buffer +\\!%PB +\\!/showpage{}def +...\" the following is from Ken Flowers -- it prevents dictionary overflows +\\!/tempdict 200 dict def tempdict begin +.fl \" prolog +.sy cat \\$1\" bring in postscript file +...\" the following line matches the tempdict above +\\!end % tempdict % +\\!PE +\\!. +.sp \\$2u \" move below the image +.. +.de pF +.ie ^G\\*(f1^G^G .ds f1 \\n(.f +.el .ie ^G\\*(f2^G^G .ds f2 \\n(.f +.el .ie ^G\\*(f3^G^G .ds f3 \\n(.f +.el .ie ^G\\*(f4^G^G .ds f4 \\n(.f +.el .tm ? font overflow +.ft \\$1 +.. +.de fP +.ie !^G\\*(f4^G^G \{\ +. ft \\*(f4 +. ds f4\" +' br \} +.el .ie !^G\\*(f3^G^G \{\ +. ft \\*(f3 +. ds f3\" +' br \} +.el .ie !^G\\*(f2^G^G \{\ +. ft \\*(f2 +. ds f2\" +' br \} +.el .ie !^G\\*(f1^G^G \{\ +. ft \\*(f1 +. ds f1\" +' br \} +.el .tm ? font underflow +.. +.ds f1\" +.ds f2\" +.ds f3\" +.ds f4\" +'\" t +.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n +.TH "sp2sp" "1" +.SH "NAME" +sp2sp \(em translate from one spice-type analog waveform file format to another +.iX "spice" "file" +.iX "waveform" +.SH "SYNOPSIS" +.PP +\fBsp2sp\fP [-c \fIoutput-format\fP] [-f \fIfieldnamelist\fP] [-n \fIfieldnumberlist\fP] [-t \fIinput-format\fP] [-v] \fIfilename\fP +.SH "Description" +.PP +\fBsp2sp\fPtranslates analog waveform data, such as that +produced by \fBspice\fP, from one format to another. +Several input and output formats are supported. In addition, +a subset of the variables in the input file can be selected to appear +in the output. + +.PP +If no \fIfilename\fP is specified, \fBsp2sp\fP reads from the standard input. +Translated results are always sent to standard output. + +.PP +\fBsp2sp\fP accepts the following options: + +.IP "-c \fIoutput-format\fP" 10 +Sets the format for the output file. Available formats include +ascii, nohead, and cazm. +.IP "-f \fIfieldnamelist\fP" 10 +A list of field names, seperated by commas. Only the fields matching the specified +names are included in the output. Field names comparisons are case-insensitive. +If a field name does not match exactly, sp2sp also looks for the field name with "v(" +prepended, to allow for the tendancy of \fBHSpice\fP to list voltages +this way in transient simulation output. +.IP "-n \fIfieldnumberlist\fP" 10 +A list of field numbers, seperated by commas. The independent variable, for example +the time axis of a transient simulation, is field number zero. +.IP "-t \fIinput-format\fP" 10 +Sets the expected format for input file or standard input. Input formats +supported include: cazm and hspice. +.IP "-v" 10 +Turns on verbose mode to print detailed information about the input file. +.SH "FILE FORMATS SUPPORTED" +.PP +A number of file formats are supported by \fBsp2sp\fP, +with more to be added in the future. Note that some formats are +only supported for input or output; this asymetry should also be corrected +where possible. + +.IP "ascii" 10 +A simple tabular ascii format, with column headings. Note that files +in this format may have very long lines. Available for output only. +.IP "nohead" 10 +Supported for output only, this format is similar to the +ascii format, except that there are no column headings. +This format is most useful for feeding into other unix +utilities, such as awk, for specialized postprocessing. +.IP "cazm" 10 +This format, generated by the CAzM simulator, is accepted for +input and output. It is essentialy the same as "ascii" except for its header. +.IP "hspice" 10 +The formats produced by \fBHSpice\fP, from +transient, sweep, and AC analyses are supprorted for input only. +Both the ascii and binary subformats are supported for reading and +are automaticly detected. +.SH "EXAMPLES" +.PP + +.SH "BUGS" +.PP +For input file formats that support multiple sets of waveforms in the same file, +only the first one is recognized and translated. + +...\" created by instant / docbook-to-man, Fri 01 Sep 2000, 00:10 diff --git a/cad/gwave/patches/patch-ab b/cad/gwave/patches/patch-ab new file mode 100644 index 00000000000..9f2d38fbd31 --- /dev/null +++ b/cad/gwave/patches/patch-ab @@ -0,0 +1,11 @@ +$NetBSD: patch-ab,v 1.1 2000/08/31 17:21:59 dmcmahill Exp $ + +--- doc/Makefile.in.orig Thu Aug 10 00:35:03 2000 ++++ doc/Makefile.in Thu Aug 31 11:28:38 2000 +@@ -42,5 +42,5 @@ + DESTDIR = + +-pkgdatadir = $(datadir)/@PACKAGE@ ++pkgdatadir = $(datadir)/doc/@PACKAGE@ + pkglibdir = $(libdir)/@PACKAGE@ + pkgincludedir = $(includedir)/@PACKAGE@ diff --git a/cad/gwave/pkg/PLIST b/cad/gwave/pkg/PLIST index 9d74456c5a5..86b933dc245 100644 --- a/cad/gwave/pkg/PLIST +++ b/cad/gwave/pkg/PLIST @@ -1,6 +1,11 @@ -@comment $NetBSD: PLIST,v 1.2 2000/08/30 17:49:37 dmcmahill Exp $ +@comment $NetBSD: PLIST,v 1.3 2000/08/31 17:21:59 dmcmahill Exp $ bin/gwave bin/sp2sp +man/man1/sp2sp.1 +share/doc/gwave/gwave-concepts.txt +share/doc/gwave/gwave-hooks.txt +share/doc/gwave/gwave-procedures.txt +share/doc/gwave/gwave-variables.txt share/guile/app/gwave/cmds.scm share/guile/app/gwave/dynlink.scm share/guile/app/gwave/extra-menus.scm @@ -12,4 +17,5 @@ share/guile/app/gwave/std-menus.scm share/guile/app/gwave/std-toolbar.scm share/guile/app/gwave/system.gwaverc share/guile/app/gwave/visiblewave-ops.scm +@dirrm share/doc/gwave @dirrm share/guile/app/gwave -- cgit v1.2.3