File: README.md

package info (click to toggle)
xdg-utils 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,652 kB
  • sloc: sh: 8,244; xml: 3,474; perl: 335; makefile: 188; awk: 41
file content (51 lines) | stat: -rw-r--r-- 1,357 bytes parent folder | download
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
# xdg-utils - Scripts and Documentation

The actual scripts are generated from `xdg-*.in`,
[xdg-utils-common.in](xdg-utils-common.in) and
[desc/xdg-*.xml](desc) which contains the
command line descriptions.

These are the files that you want to edit.
To add a new script, you must also provide 
a `desc/xdg-*.xml` file.

**Do not make changes to the generated scripts themselves!**

---

Use `make scripts-clean` to delete all generated files and use
`make scripts` to re-generate them.

The manual files in [man/](man) and [html/](html)
are also generated from the [desc/xdg-*.xml](desc) files.

Use `make scripts html man` to update all generated files

Use `make release` to remove everything but the generated files.

## Writing Documentation

The files in [desc/](desc) make use of the [DocBook format](https://tdg.docbook.org/).

If you want to use more recent tags please update to the minimum version of DocBook that is required by changing the `DOCTYPE`.

Exmaple:

You want to use the `<code>` tag which requires DocBook 4.3.

Replace the lines …

```xml
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
    "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
]>
```

… with:

```xml
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
    "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
]>
```