-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsubcommand-list.sh
More file actions
executable file
·55 lines (41 loc) · 947 Bytes
/
subcommand-list.sh
File metadata and controls
executable file
·55 lines (41 loc) · 947 Bytes
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
#!/bin/sh -e
cat << EOM > subcommands.md
# Lpjs subcommand list
Each subcommand below is documented by a man page. To view the documentation,
install lpjs using your chosen package manager and run \`man subcommand\`
(e.g. \`man lpjs-nodes\`).
| Subcommand | Purpose |
|------------|---------|
EOM
# Man page
cat << EOM > Man/lpjs.1
.TH lpjs 1
.SH NAME
lpjs - Lightweight, Portable Job Scheduler
.SH "DESCRIPTION"
.B LPJS
is a batch system, i.e. a job scheduler and resource manager, for running
programs in the background when resources available.
.SH SUBCOMMANDS
.nf
.na
EOM
auto-man2man Man/lpjs-* >> Man/lpjs.1
cat << EOM >> Man/lpjs.1
.ad
.fi
.SH "SEE ALSO"
munge(1), munge(3), munge(7)
.SH AUTHOR
.nf
.na
J Bacon
EOM
# Debug
ape Man/lpjs.1
# For github
auto-man2man Man/* | awk -F - '$1 !~ "lpjs" { printf("| %s | %s |\n", $1, $2); }' \
>> subcommands.md
# Debug
# grip --export subcommands.md
# firefox ./subcommands.html