commit ca23949e0fd1e8dea383d66ab3b5dc389a3503c5 from: Omar Polo date: Mon Aug 19 19:20:32 2024 UTC sync-man.sh: save some lines; ok stsp@ commit - 3aab66ae6812bcb4f9b957e2d2df929b5e3dbea8 commit + ca23949e0fd1e8dea383d66ab3b5dc389a3503c5 blob - f73c3e8bd5ce43f33dd294816f357e21426567f6 blob + 7010ccaf5ad2d45ea6f8ef025cb119d4b1dac1fb --- sync-man.sh +++ sync-man.sh @@ -9,21 +9,17 @@ while getopts w: name; do esac done -CONVERT="mandoc -T html -O style=mandoc.css" - -for f in got.1 got-worktree.5 git-repository.5 got.conf.5; do - $CONVERT "$workdir"/got/$f > ./${f}.html +for f in \ + got/got.1 got/got-worktree.5 got/git-repository.5 got/got.conf.5 \ + gotadmin/gotadmin.1 \ + tog/tog.1 \ + gotwebd/gotwebd.8 gotwebd/gotwebd.conf.5 \ + gotd/gotd.8 gotd/gotd.conf.5 \ + gotsh/gotsh.1 \ + gotctl/gotctl.8 \ + gitwrapper/gitwrapper.1 \ + ; do + mandoc -T html -O style=mandoc.css "$workdir/$f" > ./${f##*/}.html done -$CONVERT "$workdir"/gotadmin/gotadmin.1 > ./gotadmin.1.html -$CONVERT "$workdir"/tog/tog.1 > ./tog.1.html -for f in gotwebd.8 gotwebd.conf.5; do - $CONVERT "$workdir"/gotwebd/$f > ./${f}.html -done -for f in gotd.8 gotd.conf.5; do - $CONVERT "$workdir"/gotd/$f > ./${f}.html -done -$CONVERT "$workdir"/gotsh/gotsh.1 > ./gotsh.1.html -$CONVERT "$workdir"/gotctl/gotctl.8 > ./gotctl.8.html -$CONVERT "$workdir"/gitwrapper/gitwrapper.1 > ./gitwrapper.1.html got st