tazwok view doc/tazwok.en.html @ rev 181

en: edit docs
author Paul Issott <paul@slitaz.org>
date Sun Nov 07 08:21:39 2010 +0000 (2010-11-07)
parents 11d28a6fec9e
children 0bc5a6853a5e
line source
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <title>Tazwok Manual</title>
6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
7 <meta name="description" content="" />
8 <meta name="expires" content="never" />
9 <meta name="modified" content="2008-07-18 20:30:00" />
10 <style type="text/css"><!--
11 body { font: 90% sans-serif, vernada, arial; margin: 0; }
12 #header { background: #f0ba08; color: black; height: 50px;
13 border-top: 1px solid black; border-bottom: 1px solid black; }
14 #content { margin: 0px 50px 26px 50px; }
15 h1 { margin: 14px 0px 0px 16px; }
16 li { line-height: 1.4em; }
17 pre { padding: 5px; color: black; background: #e1e0b0; }
18 pre.script { padding: 10px; color: black; background: #e8e8e8;
19 border: 1px inset #333333; }
20 code { font-size: 100%; color: #669900; background: transparent; }
21 hr { color: white; background: white; height: 1px; border: 0; }
22 --></style>
23 </head>
24 <body bgcolor="#ffffff">
25 <div id="header">
26 <h1><font color="#3e1220">Tazwok Manual</font></h1>
27 </div>
28 <hr />
29 <!-- Start content -->
30 <div id="content">
32 <h2>NAME</h2>
33 <p>
34 Tazwok - SliTaz sources and packages cooker.
35 </p>
37 <h2>SYNTAX</h2>
38 <pre> tazwok [command] [package|list|category|dir] [--option]
39 </pre>
41 <h2>DESCRIPTION</h2>
42 <p>
43 Tazwok is a command line tool to configure and compile a package from source. Tazwok can also create packages
44 ready to be used by Tazpkg, the SliTaz package manager. To work, Tazwok uses a directory containing
45 the receipt and any necessary information (stuff) for the construction of the package. This receipt is also used by
46 Tazpkg and consists of different variables and functions. Tazwok uses a configuration file (/etc/tazwok.conf)
47 to find the path to the wok, the package sources, and any generated .tazpkg packages. Tazwok can also generate
48 a list of packages with their md5, create packages interactively, search for packages in the wok, clean generated files and even
49 cook several packages at once (See available commands).
50 </p>
51 <p>
52 Tazwok is entirely built from scratch using SHell script, compatible with Bash; it runs under Ash -
53 part of the Busybox project. Tazwok is distributed under the free GNU license GPL V3. The SliTaz
54 Cookbook also provides documentation about Tazwok and the package receipts.
55 </p>
57 <h2>COMMANDS</h2>
58 <a name="usage"></a>
59 <h3><font color="#6c0023">usage</font></h3>
60 <p>
61 Usage displays a summary of available commands with a short description in English:
62 </p>
63 <pre> # tazwok usage
64 </pre>
65 <a name="stats"></a>
66 <h3><font color="#6c0023">stats</font></h3>
67 <p>
68 Stats displays information contained in the configuration file and the number of packages
69 available in the wok:
70 </p>
71 <pre> # tazwok stats
72 </pre>
73 <a name="list"></a>
74 <h3><font color="#6c0023">list</font></h3>
75 <p>
76 List allows you to list all the packages contained in the wok or the default categories
77 (you can create your own). It can also list packages by category:
78 </p>
79 <pre> # tazwok list
80 # tazwok list category
81 </pre>
82 <a name="info"></a>
83 <h3><font color="#6c0023">info</font></h3>
84 <p>
85 This command provides information on the package - name, version, etc. Info on the basic package receipt
86 is the same as displayed by Tazpkg and the installed packages:
87 </p>
88 <pre> # tazwok info package
89 </pre>
90 <a name="check-log"></a>
91 <h3><font color="#6c0023">check-log</font></h3>
92 <p>
93 When compiling a binary source, Tazwok generates a few messages stored in the file
94 'process.log'. To view:
95 </p>
96 <pre> # tazwok check-log package
97 </pre>
98 <a name="search"></a>
99 <h3><font color="#6c0023">search</font></h3>
100 <p>
101 Search allows you to search for packages in the wok. You can specify a term or package name:
102 </p>
103 <pre> # tazwok search name
104 </pre>
105 <a name="compile"></a>
106 <h3><font color="#6c0023">compile</font></h3>
107 <p>
108 This command uses the compilation rules (compile_rules) specified in the receipt for the package in
109 question to compile the sources. Note compilation rules are not always necessary - packages
110 generated by 'genpkg' and 'cook' can also compile sources and generate the binary package.
111 Example:
112 </p>
113 <pre> # tazwok compile package
114 </pre>
115 <a name="genpkg"></a>
116 <h3><font color="#6c0023">genpkg</font></h3>
117 <p>
118 Genpkg will generate the .tazpkg package using the 'genpkg_rules' found in the receipt.
119 Once the package is generated, it's stored in the repository of packages specified in the configuration
120 file ('tazwok stats' to view). The package can be used by Tazpkg or Tazlito to generate a LiveCD
121 distribution. Note that the standard files such as local, pixmap or name.desktop are automatically copied
122 to $fs/usr/share, provided the paths are standard or if the file exists in /stuff. Example using 'genpkg':
123 </p>
124 <pre> # tazwok genpkg package
125 </pre>
126 <a name="cook"></a>
127 <h3><font color="#6c0023">cook</font></h3>
128 <p>
129 Cook will simply compile and generate the package:
130 </p>
131 <pre> # tazwok cook package
132 </pre>
133 <a name="cook-list"></a>
134 <h3><font color="#6c0023">cook-list</font></h3>
135 <p>
136 This command will launch 'tazwok cook' on all the packages contained in the list file specified in the argument.
137 Cook-list is used for example, to cook the base system (base-system) without glibc. On SliTaz, you will find
138 examples of cooking lists in the directory /usr/share/examples/tazwok.cooklists:
139 </p>
140 <pre> # tazwok cook-list packages.cooklist
141 </pre>
142 <a name="clean"></a>
143 <h3><font color="#6c0023">clean</font></h3>
144 <p>
145 Clean can simply delete all files generated by compiling and packaging:
146 </p>
147 <pre> # tazwok clean package
148 </pre>
149 <a name="new-tree"></a>
150 <h3><font color="#6c0023">new-tree</font></h3>
151 <p>
152 The 'new-tree' command can create a new package in the wok and can be used interactively. It
153 will create a directory of the package and a receipt that can then be edited with your favorite
154 text editor. The receipt can also be configured using the '--interactive' option. For help you can look at existing
155 receipts or read the documentation in the Cookbook. Example:
156 </p>
157 <pre> # tazwok new-tree package
158 # tazwok new-tree package --interactive
159 </pre>
160 <a name="gen-list"></a>
161 <h3><font color="#6c0023">gen-list</font></h3>
162 <p>
163 The 'gen-list' command can generate a list of packages (packages.list), their md5 (packages.md5) and a list
164 of options containing information (packages.txt). The lists are created on the basis of packages
165 contained in a directory. The list in text format is built using a receipt contained in a wok. The default
166 packages directory is the one specified in the configuration file, you can also specify the directory on the
167 command line. Examples:
168 </p>
169 <pre> # tazwok gen-list
170 # tazwok gen-list --text
171 # tazwok gen-list /path/to/repository
172 </pre>
173 <a name="gen-clean-wok"></a>
174 <h3><font color="#6c0023">gen-clean-wok and clean-wok</font></h3>
175 <p>
176 The 'gen-clean-wok' command can create a new wok, this is useful to save a version of the wok, or create a new wok
177 to test with another. Running 'clean-wok' will clean all packages in the current wok and delete any generated
178 files. To generate a clean wok or clean the current wok:
179 </p>
180 <pre> # tazwok gen-clean-wok path/to/new-wok
181 # tazwok clean-wok
182 </pre>
183 <a name="remove"></a>
184 <h3><font color="#6c0023">remove</font></h3>
185 <p>
186 Removes the package specified from the wok, including the receipt, stuff, all files, etc:
187 </p>
188 <pre> # tazwok remove package
189 </pre>
190 <a name="build-depends"></a>
191 <h3><font color="#6c0023">build-depends</font></h3>
192 <p>
193 Build-depends generates a list of packages to build a wok:
194 </p>
195 <pre> # tazwok build-depends
196 </pre>
197 <a name="cmp"></a>
198 <h3><font color="#6c0023">cmp|compare</font></h3>
199 <p>
200 Compares the wok and the cooked packages and generates a report.
201 Obsolete packages can be deleted with the --remove option.
202 The --cook option compiles the packages. Examples:
203 </p>
204 <pre> # tazwok compare
205 # tazwok compare --remove
206 # tazwok compare --cook
207 </pre>
208 <a name="check"></a>
209 <h3><font color="#6c0023">check</font></h3>
210 <p>
211 Checks the receipts for common errors:
212 </p>
213 <pre> # tazwok check
214 </pre>
216 <h2>MAINTAINER</h2>
217 <p>
218 Christophe Lincoln &lt;pankso at slitaz.org&gt;
219 </p>
221 <!-- End content -->
222 </div>
224 </body>
225 </html>