aps/man/manmake.sh

19 lines
396 B
Bash
Raw Normal View History

# clean everything
function clean(){
set -x
rm aps.8
rm alnux-pkg-standard.7
}
2021-10-06 20:37:46 +03:00
function scdocbuild(){
set -x
2021-10-06 20:37:46 +03:00
scdoc < aps.8.md > aps.8
scdoc < alnux-pkg-standard.7.md > alnux-pkg-standard.7
}
function main(){
case $1 in
2021-10-06 20:37:46 +03:00
panbuild) scdocbuild || echo "scdoc is missing!" ;;
clean) clean ;;
2021-10-06 20:37:46 +03:00
*) scdocbuild || echo "scdoc is missing" ;;
esac
}
main $1