1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/openpkg/sea.8 Tue Jul 31 12:23:42 2012 +0200 1.3 @@ -0,0 +1,177 @@ 1.4 +.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.22) 1.5 +.\" 1.6 +.\" Standard preamble: 1.7 +.\" ======================================================================== 1.8 +.de Sp \" Vertical space (when we can't use .PP) 1.9 +.if t .sp .5v 1.10 +.if n .sp 1.11 +.. 1.12 +.de Vb \" Begin verbatim text 1.13 +.ft CW 1.14 +.nf 1.15 +.ne \\$1 1.16 +.. 1.17 +.de Ve \" End verbatim text 1.18 +.ft R 1.19 +.fi 1.20 +.. 1.21 +.\" Set up some character translations and predefined strings. \*(-- will 1.22 +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left 1.23 +.\" double quote, and \*(R" will give a right double quote. \*(C+ will 1.24 +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and 1.25 +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, 1.26 +.\" nothing in troff, for use with C<>. 1.27 +.tr \(*W- 1.28 +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' 1.29 +.ie n \{\ 1.30 +. ds -- \(*W- 1.31 +. ds PI pi 1.32 +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch 1.33 +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch 1.34 +. ds L" "" 1.35 +. ds R" "" 1.36 +. ds C` 1.37 +. ds C' 1.38 +'br\} 1.39 +.el\{\ 1.40 +. ds -- \|\(em\| 1.41 +. ds PI \(*p 1.42 +. ds L" `` 1.43 +. ds R" '' 1.44 +'br\} 1.45 +.\" 1.46 +.\" Escape single quotes in literal strings from groff's Unicode transform. 1.47 +.ie \n(.g .ds Aq \(aq 1.48 +.el .ds Aq ' 1.49 +.\" 1.50 +.\" If the F register is turned on, we'll generate index entries on stderr for 1.51 +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index 1.52 +.\" entries marked with X<> in POD. Of course, you'll have to process the 1.53 +.\" output yourself in some meaningful fashion. 1.54 +.ie \nF \{\ 1.55 +. de IX 1.56 +. tm Index:\\$1\t\\n%\t"\\$2" 1.57 +.. 1.58 +. nr % 0 1.59 +. rr F 1.60 +.\} 1.61 +.el \{\ 1.62 +. de IX 1.63 +.. 1.64 +.\} 1.65 +.\" 1.66 +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). 1.67 +.\" Fear. Run. Save yourself. No user-serviceable parts. 1.68 +. \" fudge factors for nroff and troff 1.69 +.if n \{\ 1.70 +. ds #H 0 1.71 +. ds #V .8m 1.72 +. ds #F .3m 1.73 +. ds #[ \f1 1.74 +. ds #] \fP 1.75 +.\} 1.76 +.if t \{\ 1.77 +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) 1.78 +. ds #V .6m 1.79 +. ds #F 0 1.80 +. ds #[ \& 1.81 +. ds #] \& 1.82 +.\} 1.83 +. \" simple accents for nroff and troff 1.84 +.if n \{\ 1.85 +. ds ' \& 1.86 +. ds ` \& 1.87 +. ds ^ \& 1.88 +. ds , \& 1.89 +. ds ~ ~ 1.90 +. ds / 1.91 +.\} 1.92 +.if t \{\ 1.93 +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" 1.94 +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' 1.95 +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' 1.96 +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' 1.97 +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' 1.98 +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' 1.99 +.\} 1.100 +. \" troff and (daisy-wheel) nroff accents 1.101 +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' 1.102 +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' 1.103 +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] 1.104 +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' 1.105 +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' 1.106 +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] 1.107 +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] 1.108 +.ds ae a\h'-(\w'a'u*4/10)'e 1.109 +.ds Ae A\h'-(\w'A'u*4/10)'E 1.110 +. \" corrections for vroff 1.111 +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' 1.112 +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' 1.113 +. \" for low resolution devices (crt and lpr) 1.114 +.if \n(.H>23 .if \n(.V>19 \ 1.115 +\{\ 1.116 +. ds : e 1.117 +. ds 8 ss 1.118 +. ds o a 1.119 +. ds d- d\h'-1'\(ga 1.120 +. ds D- D\h'-1'\(hy 1.121 +. ds th \o'bp' 1.122 +. ds Th \o'LP' 1.123 +. ds ae ae 1.124 +. ds Ae AE 1.125 +.\} 1.126 +.rm #[ #] #H #V #F C 1.127 +.\" ======================================================================== 1.128 +.\" 1.129 +.IX Title "SEA 8" 1.130 +.TH SEA 8 "OpenPKG" "SEA(8)" "OpenPKG" 1.131 +.\" For nroff, turn off justification. Always turn off hyphenation; it makes 1.132 +.\" way too many mistakes in technical documents. 1.133 +.if n .ad l 1.134 +.nh 1.135 +.SH "NAME" 1.136 +sea \- Shell Execution Archive 1.137 +.SH "SYNOPSIS" 1.138 +.IX Header "SYNOPSIS" 1.139 +\&\fBsea\fR 1.140 +[\fB\-h\fR|\fB\-\-help\fR] 1.141 +[\fB\-o\fR|\fB\-\-output\fR \fIsea\fR] 1.142 +\&\fIscript\fR 1.143 +[\fIfile-or-dir\fR ...] 1.144 +.SH "DESCRIPTION" 1.145 +.IX Header "DESCRIPTION" 1.146 +The \fBsea\fR utility allows you to wrap a control shell script (\fIscript\fR) 1.147 +plus zero or more payload file or directories (\fIfile-or-dir\fR) into a 1.148 +so-called \fIShell Execution Archive\fR (\fIsea\fR), a \fIsh\fR\|(1) executable script 1.149 +which temporarily auto-extracts its payload and pass-through execution 1.150 +to the control script. 1.151 +.SH "OPTIONS AND ARGUMENTS" 1.152 +.IX Header "OPTIONS AND ARGUMENTS" 1.153 +.IP "\fB\-h\fR|\fB\-\-help\fR" 4 1.154 +.IX Item "-h|--help" 1.155 +Just shows a short usage information of the \fBsea\fR utility. 1.156 +.IP "\fB\-o\fR|\fB\-\-output\fR \fIsea\fR" 4 1.157 +.IX Item "-o|--output sea" 1.158 +The output \fIShell Execution Archive\fR file. By default the output is 1.159 +saved to a file with a basename derived from \fIscript\fR and with new 1.160 +attached extension \fI.sea\fR. 1.161 +.IP "\fIscript\fR" 4 1.162 +.IX Item "script" 1.163 +The mandatory control script which is added to the payload and which 1.164 +(after auto-extraction) is executed. It receives all command-line 1.165 +arguments originally passed to the \fIShell Execution Archive\fR. 1.166 +.IP "\fIfile-or-dir\fR" 4 1.167 +.IX Item "file-or-dir" 1.168 +Optional number of files or directories which are added to the payload. 1.169 +.SH "EXAMPLES" 1.170 +.IX Header "EXAMPLES" 1.171 +.Vb 1 1.172 +\& $ sea \-o foo.src.sh foo.sh foo.src.d 1.173 +.Ve 1.174 +.SH "HISTORY" 1.175 +.IX Header "HISTORY" 1.176 +The \fBsea\fR command was implemented in April 2012 by \fIRalf S. Engelschall\fR 1.177 +<rse@engelschall.com>. Its idea is based on the 1.178 +OpenPKG shell packages (\fIopenpkg.src.sh\fR) and its implemenation was 1.179 +triggered by the demand for self-contained OpenPKG software stack source 1.180 +archives.