19 lines
No EOL
396 B
Bash
Executable file
19 lines
No EOL
396 B
Bash
Executable file
# clean everything
|
|
function clean(){
|
|
set -x
|
|
rm aps.8
|
|
rm alnux-pkg-standard.7
|
|
}
|
|
function scdocbuild(){
|
|
set -x
|
|
scdoc < aps.8.md > aps.8
|
|
scdoc < alnux-pkg-standard.7.md > alnux-pkg-standard.7
|
|
}
|
|
function main(){
|
|
case $1 in
|
|
panbuild) scdocbuild || echo "scdoc is missing!" ;;
|
|
clean) clean ;;
|
|
*) scdocbuild || echo "scdoc is missing" ;;
|
|
esac
|
|
}
|
|
main $1 |