aps/man/manmake.sh
2021-10-06 20:09:46 +02:00

27 lines
No EOL
548 B
Bash
Executable file

# clean everything
function clean(){
set -x
rm aps.8
rm alnux-pkg-standard.7
rm sel.7
rm repo.7
rm mkinitramfs.8
rm chroot-al.1
}
function scdocbuild(){
set -x
scdoc < aps.8.md > aps.8
scdoc < alnux-pkg-standard.7.md > alnux-pkg-standard.7
scdoc < sel.7.md > sel.7
scdoc < repo.7.md > repo.7
scdoc < mkinitramfs.8.md > mkinitramfs.8
scdoc < chroot-al.1.md > chroot-al.1
}
function main(){
case $1 in
scdocbuild) scdocbuild ;;
clean) clean ;;
*) scdocbuild ;;
esac
}
main $1