From afcd515b99a4f9e61f48e92ed93710c45028a06c Mon Sep 17 00:00:00 2001 From: Dmitry Eremin-Solenikov Date: Mon, 8 Dec 2014 02:13:34 +0300 Subject: [PATCH] update.sh: remove linked manpages on uninstall Add additional code to remove linked manpages on uninstall. Since we do linking manually, automake will not remove them for us. Signed-off-by: Dmitry Eremin-Solenikov --- update.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/update.sh b/update.sh index 9c49ad5..f16afac 100755 --- a/update.sh +++ b/update.sh @@ -309,4 +309,16 @@ echo "copying manpages" echo " \$(DESTDIR)\$(mandir)/man3/$2" >> Makefile.am done echo "endif" >> Makefile.am + echo "" >> Makefile.am + echo "uninstall-local:" >> Makefile.am + for i in $SSL_MLINKS; do + IFS=","; set $i; unset IFS + echo " -rm -f \$(DESTDIR)\$(mandir)/man3/$2" >> Makefile.am + done + echo "if ENABLE_LIBTLS" >> Makefile.am + for i in $TLS_MLINKS; do + IFS=","; set $i; unset IFS + echo " rm -f \$(DESTDIR)\$(mandir)/man3/$2" >> Makefile.am + done + echo "endif" >> Makefile.am )