This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View 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