aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-03-27 06:42:45 -0500
committerBrent Cook <bcook@openbsd.org>2015-03-27 06:42:45 -0500
commit273bd7bd61cbf37219dcefa5ccc7e3e40ae1cb76 (patch)
tree3e57a3d723c494fccbd149184a66fa77dfc7fd19 /update.sh
parent34bf96ce4b151e1ebcdd048fe4891139bcea760a (diff)
downloadportable-273bd7bd61cbf37219dcefa5ccc7e3e40ae1cb76.tar.gz
portable-273bd7bd61cbf37219dcefa5ccc7e3e40ae1cb76.tar.bz2
portable-273bd7bd61cbf37219dcefa5ccc7e3e40ae1cb76.zip
Use mandoc database to get man links.
Previously, we semi-manually grabbed the MLINKS from the libressl Makefiles. The better way is to extract this information from the mandoc link database files directly, allowing for MLINKS to eventually go away upstream.
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh24
1 files changed, 9 insertions, 15 deletions
diff --git a/update.sh b/update.sh
index 317b823..9828093 100755
--- a/update.sh
+++ b/update.sh
@@ -260,25 +260,19 @@ echo "copying manpages"
260 done 260 done
261 261
262 echo "install-data-hook:" >> Makefile.am 262 echo "install-data-hook:" >> Makefile.am
263 source ./links 263 for i in `cat ./links`; do
264 for i in $SSL_MLINKS; do
265 IFS=","; set $i; unset IFS 264 IFS=","; set $i; unset IFS
266 echo " ln -f \$(DESTDIR)\$(mandir)/man3/$1 \\" >> Makefile.am 265 if [ "$2" != "" ]; then
267 echo " \$(DESTDIR)\$(mandir)/man3/$2" >> Makefile.am 266 echo " ln -f \$(DESTDIR)\$(mandir)/man3/$1 \\" >> Makefile.am
268 done 267 echo " \$(DESTDIR)\$(mandir)/man3/$2" >> Makefile.am
269 for i in $TLS_MLINKS; do 268 fi
270 IFS=","; set $i; unset IFS
271 echo " ln -f \$(DESTDIR)\$(mandir)/man3/$1 \\" >> Makefile.am
272 echo " \$(DESTDIR)\$(mandir)/man3/$2" >> Makefile.am
273 done 269 done
274 echo "" >> Makefile.am 270 echo "" >> Makefile.am
275 echo "uninstall-local:" >> Makefile.am 271 echo "uninstall-local:" >> Makefile.am
276 for i in $SSL_MLINKS; do 272 for i in `cat ./links`; do
277 IFS=","; set $i; unset IFS 273 IFS=","; set $i; unset IFS
278 echo " -rm -f \$(DESTDIR)\$(mandir)/man3/$2" >> Makefile.am 274 if [ "$2" != "" ]; then
279 done 275 echo " -rm -f \$(DESTDIR)\$(mandir)/man3/$2" >> Makefile.am
280 for i in $TLS_MLINKS; do 276 fi
281 IFS=","; set $i; unset IFS
282 echo " rm -f \$(DESTDIR)\$(mandir)/man3/$2" >> Makefile.am
283 done 277 done
284) 278)