From b49d8ebefe9b10c53a6a09ad564e22111b7b25c6 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 20 Sep 2003 07:12:49 +0000 Subject: Initial Import --- src/repc.1 | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 src/repc.1 (limited to 'src/repc.1') diff --git a/src/repc.1 b/src/repc.1 new file mode 100644 index 0000000..49045ae --- /dev/null +++ b/src/repc.1 @@ -0,0 +1,73 @@ +.Dd September, 2002 +.Dt REPC 1 +.Os Rep 2.3 +.Sh NAME +.Nm repc +.Nd compiler for the +.Xr rep 1 +scripting language +.Sh SYNOPSIS +.Nm +.Op Fl rp +.Op Fl z Ar buffsize +.Ar script +.Ar outfile +.Nm +.Fl d +.Ar script +.Sh DESCRIPTION +The +.Nm +command compiles +.Xr rep 1 +scripts into an byte code format. This speeds up execution as compilation is not +required at run time. Also useful when using the +.Xr rlib 3 +library. +.Pp +.Ar script +is compiled into +.Ar output . +The +.Fl z +and +.Fl p +options are stored with the compiled script, and will be used as defaults when the +script is executed. +.Sh OPTIONS +The options are as follows: +.Bl -tag -width Fl +.It Fl d +Dump dissassembled byte code. +.It Fl p +Default to parse mode. When the script is executed only replaments +will be written out, rather than unreplaced text. +.It Fl r +Compile into raw byte code format. For use with the +.Xr rlib 3 +library. Any options are not stored with the code. +.Xr rep 3 +cannot read this format. +.It Fl z +Set the default buffer size to +.Ar buffsize +and store it along with the compiled script. See +.Xr rep 1 +for a description of the buffer size. +.Sh NOTE +The +.Nm +command uses +.Xr getopt 3 +to parse it's arguments, which allows it to accept +the +.Sq Li -- +option which will stop processing of flag options at that point. This allows +the processing of files with names that begin with a dash +.Pq Sq - . +.Sh SEE ALSO +.Xr rep 1 , +.Xr rlib 3 , +.Xr pcre 3 +.Sh AUTHOR +.An Nate Nielsen Aq nielsen@memberwebs.com \ No newline at end of file -- cgit v1.2.3