2021-10-06 16:03:28 +03:00
|
|
|
# clean everything
|
|
|
|
function clean(){
|
|
|
|
set -x
|
|
|
|
rm aps.8
|
|
|
|
rm alnux-pkg-standard.7
|
2021-10-06 21:09:46 +03:00
|
|
|
rm sel.7
|
|
|
|
rm repo.7
|
|
|
|
rm mkinitramfs.8
|
|
|
|
rm chroot-al.1
|
2021-10-06 16:03:28 +03:00
|
|
|
}
|
2021-10-06 20:37:46 +03:00
|
|
|
function scdocbuild(){
|
2021-10-06 16:03:28 +03:00
|
|
|
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
|
2021-10-06 21:09:46 +03:00
|
|
|
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
|
2021-10-06 16:03:28 +03:00
|
|
|
}
|
|
|
|
function main(){
|
|
|
|
case $1 in
|
2021-10-06 21:09:46 +03:00
|
|
|
scdocbuild) scdocbuild ;;
|
2021-10-06 16:03:28 +03:00
|
|
|
clean) clean ;;
|
2021-10-06 21:09:46 +03:00
|
|
|
*) scdocbuild ;;
|
2021-10-06 16:03:28 +03:00
|
|
|
esac
|
|
|
|
}
|
|
|
|
main $1
|