File: xstow.html

package info (click to toggle)
xstow 1.0.0-2.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,160 kB
  • ctags: 1,216
  • sloc: cpp: 7,218; sh: 1,194; makefile: 196; awk: 26
file content (502 lines) | stat: -rw-r--r-- 15,897 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>NAME</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:feedback@suse.de" />
</head>

<body style="background-color: white">


<!-- INDEX BEGIN -->
<div name="index">
<p><a name="__index__"></a></p>

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#synopsis">SYNOPSIS</a></li>
	<li><a href="#description">DESCRIPTION</a></li>
	<li><a href="#usage">USAGE</a></li>
	<li><a href="#options">OPTIONS</a></li>
	<li><a href="#return_values">RETURN VALUES</a></li>
	<li><a href="#environment_variables">ENVIRONMENT VARIABLES</a></li>
	<li><a href="#cofiguration_files">COFIGURATION FILES</a></li>
	<li><a href="#examples">EXAMPLES</a></li>
	<ul>

		<li><a href="#common_usage">Common Usage</a></li>
		<li><a href="#installing_xstow_by_using_xstow">Installing XStow by using XStow</a></li>
	</ul>

	<li><a href="#compatible">COMPATIBLE</a></li>
	<ul>

		<li><a href="#link_creation">Link Creation</a></li>
		<li><a href="#command_line_options">Command Line Options</a></li>
	</ul>

	<li><a href="#bugs">BUGS</a></li>
	<li><a href="#why">WHY</a></li>
	<li><a href="#authors">AUTHORS</a></li>
	<li><a href="#copying">COPYING</a></li>
	<li><a href="#see_also">SEE ALSO</a></li>
</ul>

<hr name="index" />
</div>
<!-- INDEX END -->

<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>XStow, replacement for GNU Stow</p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<p>xstow        [OPTION ...] PACKAGE</p>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>XStow is a replacement of GNU Stow (<strong>stow</strong>) written in C++. It
supports all features of Stow with some extensions.</p>
<p>XStow as GNU Stow, are programs for managing the installation of software
packages, keeping them separate (/usr/local/stow/emacs
vs. /usr/local/stow/perl, for example) while making them appear to be
installed in the same place (/usr/local).</p>
<p>
</p>
<hr />
<h1><a name="usage">USAGE</a></h1>
<p>xstow [OPTION ...] PACKAGE</p>
<p>Install a package</p>
<pre>
        xstow foobar</pre>
<p>Uninstall package</p>
<pre>
        xstow -D foobar</pre>
<p>
</p>
<hr />
<h1><a name="options">OPTIONS</a></h1>
<dl>
<dt><strong><a name="dl_debug_level_int" class="item"><strong>-dl -debug-level</strong> INT</a></strong>

<dd>
<p>Set's the debug level. An unsigned integer is accepted. The
default value is 0.</p>
</dd>
</li>
<dt><strong><a name="dm_debug_module_all_arg_main_tree_cppdir" class="item"><strong>-dm -debug-module</strong> [ALL|ARG|MAIN|TREE|CPPDIR]</a></strong>

<dd>
<p>Filter messages from a specific module.</p>
</dd>
</li>
<dt><strong><a name="h_help" class="item"><strong>-h -help</strong></a></strong>

<dd>
<p>Shows a help screen.</p>
</dd>
</li>
<dt><strong><a name="v_version" class="item"><strong>-V -Version</strong></a></strong>

<dd>
<p>Displays XStows version number and supported features.</p>
</dd>
</li>
<dt><strong><a name="n_no" class="item"><strong>-n -no</strong></a></strong>

<dd>
<p>Do not actually make changes</p>
</dd>
</li>
<dt><strong><a name="c_conflicts" class="item"><strong>-c -conflicts</strong></a></strong>

<dd>
<p>Scan for conflicts, implies <strong>-n</strong>.</p>
</dd>
</li>
<dt><strong><a name="s_simulate" class="item"><strong>-s -simulate</strong></a></strong>

<dd>
<p>Simulate installation. If this option is set permission problems will
be ignored and <strong>-verbose</strong> will be set to 1.</p>
</dd>
</li>
<dt><strong><a name="d_dir_dir" class="item"><strong>-d -dir</strong> DIR</a></strong>

<dd>
<p>Set stow dir to DIR. The default is the current directory.</p>
</dd>
</li>
<dt><strong><a name="d_target_dir" class="item"><strong>-d -target</strong> DIR</a></strong>

<dd>
<p>Set target to DIR. The default is the parent of the stow directory.</p>
</dd>
</li>
<dt><strong><a name="v_verbose_0_1_2_3" class="item"><strong>-v -verbose</strong> [0|1|2|3]</a></strong>

<dd>
<p>Increase verboseness. Possible levels are 0,1,2 or 3. Simple setting
<strong>-v</strong> or <strong>-verbose</strong> adds 1.</p>
</dd>
</li>
<dt><strong><a name="d_delete" class="item"><strong>-D -delete</strong></a></strong>

<dd>
<p>Unstow instead of stow. Deinstall the package.</p>
</dd>
</li>
<dt><strong><a name="r_restow" class="item"><strong>-R -restow</strong></a></strong>

<dd>
<p>The same like <strong>-delete</strong> followed by an reinstall.</p>
</dd>
</li>
<dt><strong><a name="ap_absolute_path" class="item"><strong>-ap -absolute-path</strong></a></strong>

<dd>
<p>Create symlinks with absolute path names. XStow can always handle
packages which were installed with this option. Installing one package
with absolute path names and one without is no problem. Only the
creation of the symlinks will be affected by this option. This will
cause that if one package is installed with this option and one
without, some of the symlinks of the first package, when they have to
be recreated will be recreated as relative ones. It is not good idea
doing this, even XStow does not have any problems with it.
<em>Warning:</em> Breaks compatibility with Stow!</p>
</dd>
</li>
<dt><strong><a name="tr_traversable_links" class="item"><strong>-tr -traversable</strong> LINKS</a></strong>

<dd>
<p>A list of links pointing to directories, that can be ignored.
eg.: /usr/local/man is a link to /usr/local/share/man
<em>Warning:</em> Breaks compatibility with Stow!</p>
</dd>
</li>
<dt><strong><a name="tkt_tr_keep_targets" class="item"><strong>-tkt -tr-keep-targets</strong></a></strong>

<dd>
<p>Add the list of traversable links also to the keep targets list. This
prevents the targets of the links from beeing removed by XStow, which
would cause that the traversable link becomes a dead link.</p>
</dd>
</li>
<dt><strong><a name="tre_tr_auto_pattern" class="item"><strong>-tre -tr-auto</strong> PATTERN</a></strong>

<dd>
<p>Automatically add links which target matches this pattern.</p>
</dd>
</li>
<dt><strong><a name="tre_tr_auto_regex_regex" class="item"><strong>-tre -tr-auto-regex</strong> REGEX</a></strong>

<dd>
<p>Automatically add links which target matches this pattern.</p>
</dd>
</li>
<dt><strong><a name="kd_keep_dirs_dir" class="item"><strong>-kd -keep-dirs</strong> DIR</a></strong>

<dd>
<p>A list of directories, that should not be removed when a package will be
removed. <em>Warning:</em> Breaks compatibility with Stow!</p>
</dd>
</li>
<dt><strong><a name="i_ignore_pattern" class="item"><strong>-i -ignore</strong> PATTERN</a></strong>

<dd>
<p>Ignore files that matches this pattern.</p>
</dd>
</li>
<dt><strong><a name="ire_ignore_regex_regex" class="item"><strong>-ire -ignore-regex</strong> REGEX</a></strong>

<dd>
<p>Ignore files that matches this expression.</p>
</dd>
</li>
<dt><strong><a name="ni_nignore_pattern" class="item"><strong>-ni -nignore</strong> PATTERN</a></strong>

<dd>
<p>Ignore everything except file and directories matching this
expression. eg: &quot;systree/bintree systree/headertree&quot;.
For using nignore support fnmatch and configration file
support has to be enabled. For more details see xstow.ini(5).</p>
</dd>
</li>
<dt><strong><a name="cp_copy_pattern" class="item"><strong>-cp -copy</strong> PATTERN</a></strong>

<dd>
<p>Copy files or directories that matching this pattern.</p>
</dd>
</li>
<dt><strong><a name="cre_copy_regex_regex" class="item"><strong>-cre -copy-regex</strong> REGEX</a></strong>

<dd>
<p>Copy files or directories that matching this expression.</p>
</dd>
</li>
<dt><strong><a name="ifd_i_file_in_dir_dir_file" class="item"><strong>-ifd -i-file-in-dir</strong> DIR/FILE</a></strong>

<dd>
<p>Ignore this file in this directory. (Relative to the package dir.)</p>
</dd>
</li>
<dt><strong><a name="cfd_c_file_in_dir_dir_file" class="item"><strong>-cfd -c-file-in-dir</strong> DIR/FILE</a></strong>

<dd>
<p>Copy this file in this directory. (Relative to the package dir.)</p>
</dd>
</li>
<dt><strong><a name="sd_stow_dirs_dir" class="item"><strong>-sd -stow-dirs</strong> DIR</a></strong>

<dd>
<p>A list of other stow dirs, that xstow is allowed change</p>
</dd>
</li>
<dt><strong><a name="sda_sd_auto_pattern" class="item"><strong>-sda -sd-auto</strong> PATTERN</a></strong>

<dd>
<p>Automatically add directories to the list when matching this
expression.</p>
</dd>
</li>
<dt><strong><a name="sde_sd_auto_regex_regex" class="item"><strong>-sde -sd-auto-regex</strong> REGEX</a></strong>

<dd>
<p>Automatically add directories to the list when matching this
expression.</p>
</dd>
</li>
<dt><strong><a name="pd_protect_dirs_dir" class="item"><strong>-pd -protect-dirs</strong> DIR</a></strong>

<dd>
<p>A list of other dirs, that xstow is not allowed change</p>
</dd>
</li>
<dt><strong><a name="pda_pd_auto_pattern" class="item"><strong>-pda -pd-auto</strong> PATTERN</a></strong>

<dd>
<p>Automatically add directories to the list when matching this
expression.</p>
</dd>
</li>
<dt><strong><a name="pde_pd_auto_regex_regex" class="item"><strong>-pde -pd-auto-regex</strong> REGEX</a></strong>

<dd>
<p>Automatically add directories to the list when matching this
expression.</p>
</dd>
</li>
<dt><strong><a name="pdt_pd_targets_dirs" class="item"><strong>-pdt -pd-targets</strong> DIRS</a></strong>

<dd>
<p>A list of dirs, xstow is allowed to change.</p>
</dd>
</li>
<dt><strong><a name="pta_pdt_add_traversable_dirs" class="item"><strong>-pta -pdt-add-traversable</strong> DIRS</a></strong>

<dd>
<p>Automatically add the targets of traversable links to the targets list.</p>
</dd>
</li>
<dt><strong><a name="f_force" class="item"><strong>-f -force</strong></a></strong>

<dd>
<p>Skip conflicts if possible.</p>
</dd>
</li>
<dt><strong><a name="f_file" class="item"><strong>-F file</strong></a></strong>

<dd>
<p>Read this configuration file too.</p>
</dd>
</li>
</dl>
<p>
</p>
<hr />
<h1><a name="return_values">RETURN VALUES</a></h1>
<ol>
<li>
<p>On success.</p>
</li>
<li>
<p>On a missspelled call of xstow.</p>
</li>
<li>
<p>If an internal error occoured.</p>
</li>
<li>
<p>Installing the package failed of some reason. All the prechecking was
ok, but the execution of the exec list failed.</p>
</li>
<li>
<p>Installing a package failed.</p>
</li>
</ol>
<p>
</p>
<hr />
<h1><a name="environment_variables">ENVIRONMENT VARIABLES</a></h1>
<p>Since the debugging of the command line parsing can be hard if the
debugging level is set by the command line there are two evironment
variables:</p>
<dl>
<dt><strong><a name="xstow_debug_level" class="item"><strong>XSTOW_DEBUG_LEVEL</strong></a></strong>

<dd>
<p>Same as the <strong>-debug-level</strong> option.</p>
</dd>
</li>
<dt><strong><a name="xstow_debug_module" class="item"><strong>XSTOW_DEBUG_MODULE</strong></a></strong>

<dd>
<p>Same as the <strong>-debug-module</strong> option.</p>
</dd>
<dd>
<p>Both values will be overwritten by the settings of the command line,
after the command line was parsed.</p>
</dd>
</li>
<dt><strong><a name="xstow_use_curses" class="item"><strong>XSTOW_USE_CURSES</strong></a></strong>

<dd>
<p>Same as the <strong>-no-curses</strong> option.</p>
</dd>
<dd>
<p>In later versions xstow tried detecting the terminal width and height,
by default at the startup routine. Even if this value is only used by
the help screen. The result was:</p>
</dd>
<dd>
<pre>
    $ TERM=&quot;&quot; xstow 
    Error opening terminal: unknown.</pre>
</dd>
<dd>
<p>The error message is reported by the ncurses lib. This can cause problems
if you wan't start xstow as a cron job.
Now xstow tries detecting the terminal width not in it's startup, but
when the help screen is printed out. As an extra option you can set
the environment variable <strong>XSTOW_USE_CURSES</strong>=&quot;0&quot; this will tell xstow
not using curses anyway.</p>
</dd>
</li>
</dl>
<p>
</p>
<hr />
<h1><a name="cofiguration_files">COFIGURATION FILES</a></h1>
<p>The configuration file xstow.ini can be located in /etc and/or in the 
current stow directory. For possible settings and syntax 
of this file see xstow.ini(5)</p>
<p>In this manpage there are some detailed informations of some special
settings of XStow too. Please read it!</p>
<p>
</p>
<hr />
<h1><a name="examples">EXAMPLES</a></h1>
<p>
</p>
<h2><a name="common_usage">Common Usage</a></h2>
<p>As an example we install the ixlib library into the /usr/local/ tree.</p>
<pre>
        tar xvfz ixlib-0.96.2.tar.gz
        cd ixlib-0.96.2
        ./configure
        make</pre>
<p>So far, this was business as usual.</p>
<p><em>Note:</em> by default the configure script prepares the application for
beeing installed into /usr/local/. Have a look at configure --help for
more info.</p>
<p>Now installation is done by not installing ixlib directly into
/usr/local/, we install it into /usr/local/stow/ixlib-0.96.2/.</p>
<pre>
        make install prefix=/usr/local/stow/ixlib-0.96.2/</pre>
<p>The last point is creating all necessare symlinks so that ixlib's
include files can be found by the compiler in
/usr/local/include. Therefore we are using xstow.</p>
<pre>
        cd /usr/local/stow
        xstow ixlib-0.96.2</pre>
<p>And all symlinks will be created.</p>
<p>
</p>
<h2><a name="installing_xstow_by_using_xstow">Installing XStow by using XStow</a></h2>
<p>After calling the configure script and make, XStow is installed into
the stow directory as I showed it in the upper example.</p>
<pre>
        make install prefix=/usr/local/stow/xstow-0.1.0</pre>
<p>Then you switch to the stow directory and call XStow</p>
<pre>
        cd /usr/local/stow
        xstow-0.1.0/bin/xstow xstow-0.1.0</pre>
<p>That is it.</p>
<p>
</p>
<hr />
<h1><a name="compatible">COMPATIBLE</a></h1>
<p>
</p>
<h2><a name="link_creation">Link Creation</a></h2>
<p>By default XStow is fully Stow compatible. The usage of some of the
advanced features can cause that Stow cannot handle the tree any
more.</p>
<p>
</p>
<h2><a name="command_line_options">Command Line Options</a></h2>
<p>XStow supports all command line options of Stow. Even it's
format.</p>
<p><table cellspacing="0" cellpadding="0"><tr><td>Eg.:
<tr><td><td>xstow --verbose=2 foobar</table></p>
<p>
</p>
<hr />
<h1><a name="bugs">BUGS</a></h1>
<p>There are some nitty gritty cases, but no known bugs.</p>
<p>
</p>
<hr />
<h1><a name="why">WHY</a></h1>
<p>Stow requires Perl. But what's on systems where no Perl is available,
or not yet installed? I tried compiling Stow with <strong>perlcc</strong>, but it
failed.</p>
<p>
</p>
<hr />
<h1><a name="authors">AUTHORS</a></h1>
<p>XStow was written by Martin Oberzalek &lt;<a href="mailto:kingleo@gmx.at">kingleo@gmx.at</a>&gt;.</p>
<p>
</p>
<hr />
<h1><a name="copying">COPYING</a></h1>
<p>XStow a replacement of GNU Stow written in C++.</p>
<p>Copyright (C) 2002-2005 by Martin Oberzalek &lt;<a href="mailto:kingleo@gmx.at">kingleo@gmx.at</a>&gt;</p>
<p>This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.</p>
<p>This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</p>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p>xstow.ini(5) merge-info(1) <code>stow(1)</code></p>
<p>GNU Stow has an excelent documentation. Have a look at the manual.
<a href="http://www.gnu.org/software/stow/">http://www.gnu.org/software/stow/</a></p>

</body>

</html>