ship manpages with libtls-standalone
This commit is contained in:
parent
edfc569005
commit
1a369f0fd7
1
.gitignore
vendored
1
.gitignore
vendored
@ -127,6 +127,7 @@ include/openssl/*.he
|
|||||||
!/libtls-standalone/compat/Makefile.am
|
!/libtls-standalone/compat/Makefile.am
|
||||||
/libtls-standalone/VERSION
|
/libtls-standalone/VERSION
|
||||||
/libtls-standalone/m4
|
/libtls-standalone/m4
|
||||||
|
/libtls-standalone/man
|
||||||
|
|
||||||
openbsd/
|
openbsd/
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
SUBDIRS = include compat src app
|
SUBDIRS = include compat src app man
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
@ -44,6 +44,7 @@ AC_CONFIG_FILES([
|
|||||||
include/Makefile
|
include/Makefile
|
||||||
app/Makefile
|
app/Makefile
|
||||||
compat/Makefile
|
compat/Makefile
|
||||||
|
man/Makefile
|
||||||
src/Makefile
|
src/Makefile
|
||||||
libtls.pc
|
libtls.pc
|
||||||
])
|
])
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
include $(top_srcdir)/Makefile.am.common
|
|
||||||
dist_man_MANS=
|
|
59
update.sh
59
update.sh
@ -251,26 +251,49 @@ chmod 755 tests/testssl
|
|||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_man_links() {
|
||||||
|
filter=$1
|
||||||
|
dest=$2
|
||||||
|
echo "install-data-hook:" >> $dest
|
||||||
|
for i in `grep $filter man/links`; do
|
||||||
|
IFS=","; set $i; unset IFS
|
||||||
|
if [ "$2" != "" ]; then
|
||||||
|
echo " ln -sf $1 \$(DESTDIR)\$(mandir)/man3/$2" >> $dest
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo "" >> $dest
|
||||||
|
echo "uninstall-local:" >> $dest
|
||||||
|
for i in `grep $filter man/links`; do
|
||||||
|
IFS=","; set $i; unset IFS
|
||||||
|
if [ "$2" != "" ]; then
|
||||||
|
echo " -rm -f \$(DESTDIR)\$(mandir)/man3/$2" >> $dest
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
# copy manpages
|
# copy manpages
|
||||||
echo "copying manpages"
|
echo "copying manpages"
|
||||||
(cd man
|
echo dist_man_MANS= > man/Makefile.am
|
||||||
$CP Makefile.am.tpl Makefile.am
|
|
||||||
|
|
||||||
|
$CP $openssl_app_src/openssl.1 man
|
||||||
|
echo "dist_man_MANS += openssl.1" >> man/Makefile.am
|
||||||
|
|
||||||
|
$CP $libtls_src/tls_init.3 man
|
||||||
|
echo "dist_man_MANS += tls_init.3" >> man/Makefile.am
|
||||||
|
|
||||||
|
(cd man
|
||||||
# update new-style manpages
|
# update new-style manpages
|
||||||
for i in `ls -1 $libssl_src/src/doc/ssl/*.3 | sort`; do
|
for i in `ls -1 $libssl_src/src/doc/ssl/*.3 | sort`; do
|
||||||
NAME=`basename "$i"`
|
NAME=`basename "$i"`
|
||||||
$CP $i .
|
$CP $i .
|
||||||
echo "dist_man_MANS += $NAME" >> Makefile.am
|
echo "dist_man_MANS += $NAME" >> Makefile.am
|
||||||
done
|
done
|
||||||
|
|
||||||
for i in `ls -1 $libcrypto_src/man/*.3 | sort`; do
|
for i in `ls -1 $libcrypto_src/man/*.3 | sort`; do
|
||||||
NAME=`basename "$i"`
|
NAME=`basename "$i"`
|
||||||
$CP $i .
|
$CP $i .
|
||||||
echo "dist_man_MANS += $NAME" >> Makefile.am
|
echo "dist_man_MANS += $NAME" >> Makefile.am
|
||||||
done
|
done
|
||||||
$CP $openssl_app_src/openssl.1 .
|
|
||||||
echo "dist_man_MANS += openssl.1" >> Makefile.am
|
|
||||||
$CP $libtls_src/tls_init.3 .
|
|
||||||
echo "dist_man_MANS += tls_init.3" >> Makefile.am
|
|
||||||
|
|
||||||
# convert remaining POD manpages
|
# convert remaining POD manpages
|
||||||
for i in `ls -1 $libssl_src/src/doc/crypto/*.pod | sort`; do
|
for i in `ls -1 $libssl_src/src/doc/crypto/*.pod | sort`; do
|
||||||
@ -284,20 +307,12 @@ echo "copying manpages"
|
|||||||
fi
|
fi
|
||||||
echo "dist_man_MANS += $NAME.3" >> Makefile.am
|
echo "dist_man_MANS += $NAME.3" >> Makefile.am
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "install-data-hook:" >> Makefile.am
|
|
||||||
for i in `cat ./links`; do
|
|
||||||
IFS=","; set $i; unset IFS
|
|
||||||
if [ "$2" != "" ]; then
|
|
||||||
echo " ln -sf $1 \$(DESTDIR)\$(mandir)/man3/$2" >> Makefile.am
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
echo "" >> Makefile.am
|
|
||||||
echo "uninstall-local:" >> Makefile.am
|
|
||||||
for i in `cat ./links`; do
|
|
||||||
IFS=","; set $i; unset IFS
|
|
||||||
if [ "$2" != "" ]; then
|
|
||||||
echo " -rm -f \$(DESTDIR)\$(mandir)/man3/$2" >> Makefile.am
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
)
|
)
|
||||||
|
add_man_links . man/Makefile.am
|
||||||
|
|
||||||
|
# standalone libtls manpages
|
||||||
|
mkdir -p libtls-standalone/man
|
||||||
|
echo "dist_man_MANS = tls_init.3" > libtls-standalone/man/Makefile.am
|
||||||
|
|
||||||
|
$CP $libtls_src/tls_init.3 libtls-standalone/man
|
||||||
|
add_man_links tls_init libtls-standalone/man/Makefile.am
|
||||||
|
Loading…
Reference in New Issue
Block a user