aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-10-26 09:23:03 -0500
committerBrent Cook <bcook@openbsd.org>2014-10-26 09:23:03 -0500
commitccaf9cdd9c161c80c27907f7782d86cfe9625621 (patch)
tree012fe55085fe16bea641c0739427157f8bd27688 /update.sh
parent8b695e534bcf00a8180bca241e379065ee31745a (diff)
downloadportable-ccaf9cdd9c161c80c27907f7782d86cfe9625621.tar.gz
portable-ccaf9cdd9c161c80c27907f7782d86cfe9625621.tar.bz2
portable-ccaf9cdd9c161c80c27907f7782d86cfe9625621.zip
remove duplicate (and overlapping) .1 manpages
openssl.1 contains all of the information from the other application manpages, and is the only one packaged in OpenBSD. So, remove the other obsolete .1 manpages (and avoid overlapping system pages like passwd.1)
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh28
1 files changed, 12 insertions, 16 deletions
diff --git a/update.sh b/update.sh
index a087a4c..661bf02 100755
--- a/update.sh
+++ b/update.sh
@@ -417,26 +417,22 @@ apps_excludes=(
417 cp $i . 417 cp $i .
418 echo "dist_man_MANS += $NAME" >> Makefile.am 418 echo "dist_man_MANS += $NAME" >> Makefile.am
419 done 419 done
420 $CP $openssl_cmd_src/openssl.1 .
421 echo "dist_man_MANS += openssl.1" >> Makefile.am
420 422
421 # convert remaining POD manpages 423 # convert remaining POD manpages
422 for i in crypto,3 apps,1; do 424 for i in `ls -1 $libssl_src/src/doc/crypto/*.pod | sort`; do
423 IFS=","; set $i; unset IFS 425 BASE=`echo $i|sed -e "s/\.pod//"`
424 for i in `ls -1 $libssl_src/src/doc/$1/*.pod | sort`; do 426 NAME=`basename "$BASE"`
425 BASE=`echo $i|sed -e "s/\.pod//"` 427 # reformat file if new
426 NAME=`basename "$BASE"` 428 if [ ! -f $NAME.3 -o $BASE.pod -nt $NAME.3 -o ../VERSION -nt $NAME.3 ]; then
427 # reformat file if new 429 echo processing $NAME
428 if [ ! -f $NAME.$2 -o $BASE.pod -nt $NAME.$2 -o ../VERSION -nt $NAME.$2 ]; then 430 pod2man --official --release="LibreSSL $VERSION" --center=LibreSSL \
429 echo processing $NAME 431 --section=3 $POD2MAN --name=$NAME < $BASE.pod > $NAME.3
430 pod2man --official --release="LibreSSL $VERSION" --center=LibreSSL \ 432 fi
431 --section=$2 $POD2MAN --name=$NAME < $BASE.pod > $NAME.$2 433 echo "dist_man_MANS += $NAME.3" >> Makefile.am
432 fi
433 echo "dist_man_MANS += $NAME.$2" >> Makefile.am
434 done
435 done 434 done
436 435
437 $CP $openssl_cmd_src/openssl.1 .
438 echo "dist_man_MANS += openssl.1" >> Makefile.am
439
440 echo "install-data-hook:" >> Makefile.am 436 echo "install-data-hook:" >> Makefile.am
441 source ./links 437 source ./links
442 for i in $MLINKS; do 438 for i in $MLINKS; do