19 lines
428 B
Plaintext
19 lines
428 B
Plaintext
|
num=`expr $1 : '.*\.\([1-8]\)'`
|
||
|
|
||
|
if [ -d $2/man ] ; then : ; else mkdir $2/man ; fi
|
||
|
if [ -f $2/man/head ] ; then : ; else cat > $2/man/head <<'EOF'
|
||
|
.rn TH yy
|
||
|
.de TH
|
||
|
.di zz
|
||
|
.yy "\\$1" "\\$2" "\\$3" "\\$4"
|
||
|
.ds ]W 5th ACK distribution
|
||
|
.ds ]D Amsterdam Compiler Kit
|
||
|
.ds ]L "\\$3
|
||
|
.di
|
||
|
.rm zz
|
||
|
..
|
||
|
EOF
|
||
|
fi
|
||
|
if [ -d $2/man/man$num ] ; then : ; else mkdir $2/man/man$num ; fi
|
||
|
cat $2/man/head $1 > $2/man/man$num/`expr //$1 : '.*/\([^/]*\)'`
|