Skip to content

Commit efed019

Browse files
01mickojohanmalm
authored andcommitted
add basic man page - fixes #17
1 parent 7b62ce9 commit efed019

File tree

3 files changed

+70
-1
lines changed

3 files changed

+70
-1
lines changed

data/labwc-menu-generator.1.scd

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
labwc-menu-generator(1)
2+
3+
# NAME
4+
5+
labwc-menu-generator - a menu generator for labwc
6+
7+
# SYNOPSIS
8+
9+
*labwc-menu-generator* [options...]
10+
11+
# DESCRIPTION
12+
13+
Labwc-menu-generator is independent of Desktop Environments and
14+
associated menu-packages.
15+
16+
This is achieved by categorising system .desktop files against a built-
17+
in directory-schema rather than parsing .menu and .directory files.
18+
19+
# OPTIONS
20+
21+
*-b, --bare*
22+
Show no header or footer
23+
24+
*-d, --desktop*
25+
Add .desktop filename as a comment in the XML output
26+
27+
*-h, --help*
28+
Show help message and quit
29+
30+
*-i, --ignore <file>*
31+
Specify file listing .desktop files to ignore
32+
33+
*-n, --no-duplicates*
34+
Limit desktop entries to one directory only
35+
36+
*-p, --pipemenu*
37+
Output in pipemenu format
38+
39+
# AUTHORS
40+
41+
The Labwc Team - https://github.com/labwc/labwc-menu-generator
42+
43+
# REPORT BUGS
44+
45+
Please report any bugs at:
46+
47+
https://github.com/labwc/labwc-menu-generator/issues/
48+
49+
# SEE ALSO
50+
51+
labwc(1), labwc-menu(5), labwc-actions(5)

data/meson.build

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
scdoc = find_program('scdoc', required: false)
2+
3+
if scdoc.found()
4+
markdown = 'labwc-menu-generator.1.scd'
5+
manpage = 'labwc-menu-generator.1'
6+
custom_target(
7+
manpage,
8+
output: manpage,
9+
input: markdown,
10+
command: scdoc,
11+
feed: true,
12+
capture: true,
13+
install: true,
14+
install_dir : join_paths(get_option('datadir'), 'man', 'man1')
15+
)
16+
endif

meson.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project(
33
'c',
44
version: '0.1.0',
55
license: 'GPL-2.0-only',
6-
meson_version: '>=0.49.0',
6+
meson_version: '>=0.59.0',
77
default_options: [
88
'c_std=c11',
99
'warning_level=2',
@@ -18,3 +18,5 @@ executable(
1818
dependencies: [glib],
1919
install: true,
2020
)
21+
22+
subdir('data')

0 commit comments

Comments
 (0)