This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
24
unikernel/duniverse/dune_/doc/update-jbuild.sh
Executable file
24
unikernel/duniverse/dune_/doc/update-jbuild.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
# CR-someday jdimino: maybe it's possible to get cmdliner to print that directly
|
||||
|
||||
set -e -o pipefail
|
||||
|
||||
CMDS=$(dune --help=plain | \
|
||||
sed -n '/COMMAND ALIASES/,/COMMON OPTIONS/p' | sed -En 's/^ ([a-z-]+) ?.*/\1/p')
|
||||
|
||||
for cmd in $CMDS; do
|
||||
cat <<EOF
|
||||
|
||||
(rule
|
||||
(with-stdout-to dune-$cmd.1
|
||||
(run dune $cmd --help=groff)))
|
||||
|
||||
(install
|
||||
(section man)
|
||||
(package dune)
|
||||
(files dune-$cmd.1))
|
||||
EOF
|
||||
done
|
||||
|
||||
echo
|
||||
Loading…
Add table
Add a link
Reference in a new issue