diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 5 insertions, 4 deletions
@@ -1,6 +1,6 @@ pkgbase = asfa-git pkgdesc = share files by upload via ssh and generation of a non-guessable link - pkgver = 0.9.0.r5.ge2992ad + pkgver = 0.9.0.r6.gd641370 pkgrel = 1 url = https://github.com/obreitwi/asfa arch = x86_64 @@ -61,9 +61,10 @@ build() { _folder_man=target/release/man mkdir -p ${_folder_man}/man1 help2man "${_path_bin}" > ${_folder_man}/man1/${_pkgname}.1 - # Find all named commands (except for aliases that need to be added afterwards) - (find "src/cmd" -not -name "mod.rs" -type f -exec basename '{}' '.rs' \; ; echo "mv")\ - help2man "'$_path_bin' $cmd" > ${_folder_man}/man1/${_pkgname}-${cmd}.1 + # Generate info about all subcommands except for 'help' (which leads to error) + "${_path_bin}" --help | awk 'enabled && $1 != "help" { print $1 } /^SUBCOMMANDS:$/ { enabled=1 }' \ + | while read -r cmd; do + help2man "$_path_bin $cmd" > ${_folder_man}/man1/${_pkgname}-${cmd}.1 done } |