-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
109 lines (66 loc) · 3.39 KB
/
README
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
+-------------------------------------------------+
| dewi - deploy and withdraw configuration files |
+-------------------------------------------------+
Dependencies.
Dewi requires Perl5 and a number of stardard Perl5 modules (like “English”,
“File::Spec”, “Cwd” and others).
It can optionally use the IPC::Run3 module from CPAN. This is required to
allow external filters to be run. On debian systems, installing the
‘libipc-run3-perl’ package will do the trick.
Additionally, the Template module from CPAN can be used to provide a
deployment method called “template”. Like IPC::Run3, the dependency for
Template is optional. On debian, the according package is called
‘libtemplate-perl’.
For building the documentation, the pandoc¹ package is required. However,
the documentation source code written in markdown is fairly readable
without processing by pandoc.
¹ <http://pandoc.org>
Installation.
I. Usage directly from the source package
To use the dewi script directly from the source package, you need to do
this:
% make
Say the source package is located at ‘/usr/src/dewi-0.3’, you would now use
the script directly from there:
% /usr/src/dewi-0.3/dewi <operation>
That's all.
For convenience, if you got “$HOME/bin” in your “$PATH”:
% ln -s /usr/src/dewi-0.3/dewi ~/bin/dewi
II. Installation to the system.
You can also install everything to the system like you would do with any
other software package. These are the required steps:
% make sys
% make install
After that the ‘dewi’ script should be located in ‘/usr/local/bin’. If you
would like another installation prefix, use:
% make sys prefix=/my/preferred/prefix
% make install prefix=/my/preferred/prefix
III. Documentation
The package also comes with documentation in form of markdown sources, from
which manpages, HTML and PDF output are generated. In order to generate and
install the documentation, use these commands:
% make doc
% make install-doc
IV. Last words
There is also a zsh completion for the maintenance helper ‘dewi’ in
‘_dewi’. Put it somewhere in $fpath before calling ‘compinit’ in your
zshrc. See zsh's manual for details.
Usage.
See the included dewi(7), dewi(1) and dewifile(5) manuals.
Compatibility with previous versions.
Previously, dewi depended on the ‘make’ utility to dispatch to its various
operations. That was a bad idea for multiple reasons. Keeping the main dewi
script in “.dewi/bin” was another design mistake. Now all functionality is
part of the ‘dewi’ frontend script.
Basically, what used to be:
% make deploy
is now:
% dewi deploy
...and so on. Also, the contents of the .dewi directory changed to avoid
incompatibilities. In any case, an UPGRADE document is due for the next
release.
There is a tag in the project's version control history that marks the last
changeset, that depended on make. If you wish to keep using it (in which
case you're completely on your own), you can get a branch that depends on
said commit by doing this:
% git checkout -b my-dewi-fork last-make-based-changeset