github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/man/generate.sh (about)

     1  #!/bin/bash
     2  #
     3  # Generate man pages for docker/docker
     4  #
     5  
     6  set -eu
     7  
     8  mkdir -p ./man/man1
     9  
    10  # Generate man pages from cobra commands
    11  go build -o /tmp/gen-manpages ./man
    12  /tmp/gen-manpages ./man/man1
    13  
    14  # Generate legacy pages from markdown
    15  ./man/md2man-all.sh -q