sear ( 1 ) USER COMMANDSsear ( 1 )


NAME

sear - generate a win32 ratz self extracting archive

SYNOPSIS

sear [ options ] [ -- pax-options ] [ file ] ...

DESCRIPTION

sear generates a win32 self extracting archive that can be used to install win32 files and applications. pax(1) is used to generate a tgz (tar(1) gzip(1)) archive from the file operands that is appended to the self extracting archive. If no file operands are specified then the standard input is read. pax(1) options (like --verbose) may be specified after a -- operand but before the first file operand.

When the self extracting archive is executed it creates a temporary directory and unpacks each file. If --command=command was specified when the archive was generated then command is executed by CMD.EXE. The temporary directory is then removed.

.exe files generated by sear(1) are fully functional ratz(1) executables, so any ratz option may be used on a sear file. This allows sear file contents to be examined and extracted without executing any embedded installation scripts.

OPTIONS

-b, --bootstrap
Statically link compiler-specific libraries.
-c, --cc=cc
The C compiler command and flags are set to cc. The default value is ncc -O -Y-Os.
-i, --icon=icon
The resource icon is set to icon. The default value is $INSTALLROOT/lib/sear/sear.ico.
-m, --meter
Set the ratz(1) --meter option when the archive is extracted.
-o, --output=file
The self extracting file name is file. The default value is install.exe.
-r, --ratz=path
The ratz(1) source file is set to path. The default value is $INSTALLROOT/lib/sear/ratz.c.
-x, --command=command
The CMD.EXE command string to run after the top level files have been read into the temporary directory. The default value is dir.
-v, --verbose
Set the ratz(1) --verbose option when the archive is extracted.

EXIT STATUS

0
Success.
>0
An error occurred.

SEE ALSO

ratz(1), gunzip(1), pax(1), CMD.EXE(m$)

IMPLEMENTATION

version
sear (AT&T Labs Research) 2004-09-28
author
David Korn <dgk@research.att.com>
author
Glenn Fowler <gsf@research.att.com>
copyright
Copyright © 2001-2008 AT&T Intellectual Property
license
http://www.opensource.org/licenses/cpl1.0.txt