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 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 16:03:28 +03:00
|
|
|
}
|
|
|
|
function main(){
|
|
|
|
case $1 in
|
2021-10-06 20:37:46 +03:00
|
|
|
panbuild) scdocbuild || echo "scdoc is missing!" ;;
|
2021-10-06 16:03:28 +03:00
|
|
|
clean) clean ;;
|
2021-10-06 20:37:46 +03:00
|
|
|
*) scdocbuild || echo "scdoc is missing" ;;
|
2021-10-06 16:03:28 +03:00
|
|
|
esac
|
|
|
|
}
|
|
|
|
main $1
|