2015-08-28 12:54:12 +02:00
|
|
|
#!/bin/sh
|
2014-07-10 13:07:09 +02:00
|
|
|
set -e
|
|
|
|
|
2014-08-01 01:18:45 +02:00
|
|
|
openbsd_branch=`cat OPENBSD_BRANCH`
|
|
|
|
|
2014-12-07 00:47:30 +01:00
|
|
|
# pull in latest upstream code
|
2014-12-07 01:43:58 +01:00
|
|
|
echo "pulling upstream openbsd source"
|
2014-08-01 01:18:45 +02:00
|
|
|
if [ ! -d openbsd ]; then
|
2014-07-11 02:41:42 +02:00
|
|
|
if [ -z "$LIBRESSL_GIT" ]; then
|
|
|
|
git clone https://github.com/libressl-portable/openbsd.git
|
|
|
|
else
|
|
|
|
git clone $LIBRESSL_GIT/openbsd
|
|
|
|
fi
|
2014-07-10 16:05:45 +02:00
|
|
|
fi
|
2014-08-01 01:18:45 +02:00
|
|
|
(cd openbsd
|
|
|
|
git checkout $openbsd_branch
|
2014-08-08 14:31:28 +02:00
|
|
|
git pull --rebase)
|
2014-07-10 13:07:09 +02:00
|
|
|
|
2014-12-07 01:43:58 +01:00
|
|
|
# setup source paths
|
2015-03-09 00:27:07 +01:00
|
|
|
CWD=`pwd`
|
|
|
|
libc_src=$CWD/openbsd/src/lib/libc
|
|
|
|
libc_regress=$CWD/openbsd/src/regress/lib/libc
|
|
|
|
libcrypto_src=$CWD/openbsd/src/lib/libcrypto
|
|
|
|
libcrypto_regress=$CWD/openbsd/src/regress/lib/libcrypto
|
|
|
|
libssl_src=$CWD/openbsd/src/lib/libssl
|
|
|
|
libssl_regress=$CWD/openbsd/src/regress/lib/libssl
|
|
|
|
libtls_src=$CWD/openbsd/src/lib/libtls
|
|
|
|
openssl_app_src=$CWD/openbsd/src/usr.bin/openssl
|
2014-12-05 05:37:22 +01:00
|
|
|
|
2014-12-07 00:47:30 +01:00
|
|
|
# load library versions
|
2015-08-28 12:54:12 +02:00
|
|
|
. $libcrypto_src/crypto/shlib_version
|
2014-12-05 05:37:22 +01:00
|
|
|
libcrypto_version=$major:$minor:0
|
|
|
|
echo "libcrypto version $libcrypto_version"
|
2014-12-07 01:59:25 +01:00
|
|
|
echo $libcrypto_version > crypto/VERSION
|
2014-07-10 13:07:09 +02:00
|
|
|
|
2015-08-28 12:54:12 +02:00
|
|
|
. $libssl_src/ssl/shlib_version
|
2014-07-10 13:07:09 +02:00
|
|
|
libssl_version=$major:$minor:0
|
2014-12-05 05:37:22 +01:00
|
|
|
echo "libssl version $libssl_version"
|
2014-12-07 01:59:25 +01:00
|
|
|
echo $libssl_version > ssl/VERSION
|
2014-07-10 13:07:09 +02:00
|
|
|
|
2015-08-28 12:54:12 +02:00
|
|
|
. $libtls_src/shlib_version
|
2014-12-05 05:37:22 +01:00
|
|
|
libtls_version=$major:$minor:0
|
|
|
|
echo "libtls version $libtls_version"
|
2014-12-07 01:59:25 +01:00
|
|
|
echo $libtls_version > tls/VERSION
|
2015-05-02 08:40:33 +02:00
|
|
|
echo $major.$minor.0 > libtls-standalone/VERSION
|
2014-07-10 13:07:09 +02:00
|
|
|
|
2014-12-08 00:08:18 +01:00
|
|
|
do_mv() {
|
|
|
|
if ! cmp -s "$1" "$2"
|
|
|
|
then
|
|
|
|
mv "$1" "$2"
|
|
|
|
else
|
|
|
|
rm -f "$1"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
MV='do_mv'
|
2014-07-21 11:21:59 +02:00
|
|
|
|
2015-08-31 14:49:50 +02:00
|
|
|
do_cp_libc() {
|
|
|
|
sed "/DEF_WEAK/d" < "$1" > "$2"/`basename "$1"`
|
|
|
|
}
|
|
|
|
CP_LIBC='do_cp_libc'
|
|
|
|
|
|
|
|
CP='cp -p'
|
|
|
|
|
2014-07-21 11:21:59 +02:00
|
|
|
$CP $libssl_src/src/LICENSE COPYING
|
2014-07-10 13:07:09 +02:00
|
|
|
|
2014-07-21 11:21:59 +02:00
|
|
|
$CP $libcrypto_src/crypto/arch/amd64/opensslconf.h include/openssl
|
|
|
|
$CP $libssl_src/src/crypto/opensslfeatures.h include/openssl
|
|
|
|
$CP $libssl_src/src/e_os2.h include/openssl
|
|
|
|
$CP $libssl_src/src/ssl/pqueue.h include
|
2014-07-10 13:07:09 +02:00
|
|
|
|
2015-06-19 09:09:27 +02:00
|
|
|
$CP $libtls_src/tls.h include
|
|
|
|
$CP $libtls_src/tls.h libtls-standalone/include
|
2015-05-02 08:40:33 +02:00
|
|
|
|
|
|
|
for i in crypto/compat libtls-standalone/compat; do
|
2015-08-31 09:30:25 +02:00
|
|
|
for j in $libc_src/crypt/arc4random.c \
|
2015-08-28 12:54:12 +02:00
|
|
|
$libc_src/crypt/chacha_private.h \
|
|
|
|
$libc_src/string/explicit_bzero.c \
|
|
|
|
$libc_src/stdlib/reallocarray.c \
|
|
|
|
$libc_src/string/strcasecmp.c \
|
|
|
|
$libc_src/string/strlcpy.c \
|
|
|
|
$libc_src/string/strlcat.c \
|
|
|
|
$libc_src/string/strndup.c \
|
|
|
|
$libc_src/string/strnlen.c \
|
|
|
|
$libc_src/string/timingsafe_bcmp.c \
|
|
|
|
$libc_src/string/timingsafe_memcmp.c \
|
|
|
|
$libcrypto_src/crypto/getentropy_*.c \
|
2015-08-31 09:30:25 +02:00
|
|
|
$libcrypto_src/crypto/arc4random_*.h; do
|
2015-08-31 14:49:50 +02:00
|
|
|
$CP_LIBC $j $i
|
2015-08-31 09:30:25 +02:00
|
|
|
done
|
2014-07-10 13:07:09 +02:00
|
|
|
done
|
|
|
|
|
2014-07-11 05:06:10 +02:00
|
|
|
$CP include/compat/stdlib.h \
|
|
|
|
include/compat/string.h \
|
|
|
|
include/compat/unistd.h \
|
2015-05-02 08:40:33 +02:00
|
|
|
libtls-standalone/include
|
|
|
|
|
|
|
|
$CP crypto/compat/arc4random*.h \
|
|
|
|
crypto/compat/bsd-asprintf.c \
|
|
|
|
libtls-standalone/compat
|
2015-04-30 11:44:35 +02:00
|
|
|
|
2014-07-22 01:56:24 +02:00
|
|
|
(cd $libssl_src/src/crypto/objects/;
|
2014-07-10 13:07:09 +02:00
|
|
|
perl objects.pl objects.txt obj_mac.num obj_mac.h;
|
|
|
|
perl obj_dat.pl obj_mac.h obj_dat.h )
|
|
|
|
mkdir -p include/openssl crypto/objects
|
2014-12-08 00:08:18 +01:00
|
|
|
$MV $libssl_src/src/crypto/objects/obj_mac.h ./include/openssl/obj_mac.h
|
|
|
|
$MV $libssl_src/src/crypto/objects/obj_dat.h ./crypto/objects/obj_dat.h
|
2014-07-10 13:07:09 +02:00
|
|
|
|
2014-12-07 00:11:59 +01:00
|
|
|
copy_hdrs() {
|
|
|
|
for file in $2; do
|
|
|
|
$CP $libssl_src/src/$1/$file include/openssl
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2014-12-14 23:42:38 +01:00
|
|
|
copy_hdrs crypto "stack/stack.h lhash/lhash.h stack/safestack.h
|
2014-07-10 13:07:09 +02:00
|
|
|
ossl_typ.h err/err.h crypto.h comp/comp.h x509/x509.h buffer/buffer.h
|
|
|
|
objects/objects.h asn1/asn1.h bn/bn.h ec/ec.h ecdsa/ecdsa.h
|
|
|
|
ecdh/ecdh.h rsa/rsa.h sha/sha.h x509/x509_vfy.h pkcs7/pkcs7.h pem/pem.h
|
|
|
|
pem/pem2.h hmac/hmac.h rand/rand.h md5/md5.h
|
|
|
|
krb5/krb5_asn.h asn1/asn1_mac.h x509v3/x509v3.h conf/conf.h ocsp/ocsp.h
|
|
|
|
aes/aes.h modes/modes.h asn1/asn1t.h dso/dso.h bf/blowfish.h
|
|
|
|
bio/bio.h cast/cast.h cmac/cmac.h conf/conf_api.h des/des.h dh/dh.h
|
|
|
|
dsa/dsa.h cms/cms.h engine/engine.h ui/ui.h pkcs12/pkcs12.h ts/ts.h
|
2015-06-20 17:40:04 +02:00
|
|
|
md4/md4.h ripemd/ripemd.h whrlpool/whrlpool.h idea/idea.h
|
2015-02-10 18:10:04 +01:00
|
|
|
rc2/rc2.h rc4/rc4.h ui/ui_compat.h txt_db/txt_db.h
|
2014-11-18 15:02:32 +01:00
|
|
|
chacha/chacha.h evp/evp.h poly1305/poly1305.h camellia/camellia.h
|
|
|
|
gost/gost.h"
|
2014-07-10 13:07:09 +02:00
|
|
|
|
|
|
|
copy_hdrs ssl "srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h"
|
|
|
|
|
2015-07-17 00:52:50 +02:00
|
|
|
$CP $libssl_src/src/crypto/opensslv.h include/openssl
|
|
|
|
awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 > VERSION
|
|
|
|
echo "LibreSSL version `cat VERSION`"
|
2014-12-14 23:42:38 +01:00
|
|
|
|
2014-12-07 00:11:59 +01:00
|
|
|
# copy libcrypto source
|
2014-12-07 01:43:58 +01:00
|
|
|
echo copying libcrypto source
|
2014-12-07 00:11:59 +01:00
|
|
|
rm -f crypto/*.c crypto/*.h
|
|
|
|
for i in `awk '/SOURCES|HEADERS/ { print $3 }' crypto/Makefile.am` ; do
|
|
|
|
dir=`dirname $i`
|
|
|
|
mkdir -p crypto/$dir
|
|
|
|
if [ $dir != "compat" ]; then
|
|
|
|
if [ -e $libssl_src/src/crypto/$i ]; then
|
2014-12-08 00:07:21 +01:00
|
|
|
$CP $libssl_src/src/crypto/$i crypto/$i
|
2014-12-07 00:11:59 +01:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
$CP crypto/compat/b_win.c crypto/bio
|
|
|
|
$CP crypto/compat/ui_openssl_win.c crypto/ui
|
2014-07-10 13:07:09 +02:00
|
|
|
|
2014-12-07 01:43:58 +01:00
|
|
|
# generate assembly crypto algorithms
|
|
|
|
asm_src=$libssl_src/src/crypto
|
2014-12-08 01:33:22 +01:00
|
|
|
gen_asm_stdout() {
|
|
|
|
perl $asm_src/$2 $1 > $3.tmp
|
2015-08-28 12:54:12 +02:00
|
|
|
[ $1 = "elf" ] && cat <<-EOF >> $3.tmp
|
2014-12-22 06:14:02 +01:00
|
|
|
#if defined(HAVE_GNU_STACK)
|
|
|
|
.section .note.GNU-stack,"",%progbits
|
|
|
|
#endif
|
|
|
|
EOF
|
2014-12-08 01:33:22 +01:00
|
|
|
$MV $3.tmp $3
|
|
|
|
}
|
|
|
|
gen_asm() {
|
|
|
|
perl $asm_src/$2 $1 $3.tmp
|
2015-08-28 12:54:12 +02:00
|
|
|
[ $1 = "elf" ] && cat <<-EOF >> $3.tmp
|
2014-12-22 06:14:02 +01:00
|
|
|
#if defined(HAVE_GNU_STACK)
|
|
|
|
.section .note.GNU-stack,"",%progbits
|
|
|
|
#endif
|
|
|
|
EOF
|
2014-12-08 01:33:22 +01:00
|
|
|
$MV $3.tmp $3
|
|
|
|
}
|
2014-12-07 01:43:58 +01:00
|
|
|
for abi in elf macosx; do
|
|
|
|
echo generating ASM source for $abi
|
2014-12-08 01:33:22 +01:00
|
|
|
gen_asm_stdout $abi aes/asm/aes-x86_64.pl crypto/aes/aes-$abi-x86_64.s
|
|
|
|
gen_asm_stdout $abi aes/asm/vpaes-x86_64.pl crypto/aes/vpaes-$abi-x86_64.s
|
|
|
|
gen_asm_stdout $abi aes/asm/bsaes-x86_64.pl crypto/aes/bsaes-$abi-x86_64.s
|
|
|
|
gen_asm_stdout $abi aes/asm/aesni-x86_64.pl crypto/aes/aesni-$abi-x86_64.s
|
|
|
|
gen_asm_stdout $abi aes/asm/aesni-sha1-x86_64.pl crypto/aes/aesni-sha1-$abi-x86_64.s
|
|
|
|
gen_asm_stdout $abi bn/asm/modexp512-x86_64.pl crypto/bn/modexp512-$abi-x86_64.s
|
|
|
|
gen_asm_stdout $abi bn/asm/x86_64-mont.pl crypto/bn/mont-$abi-x86_64.s
|
|
|
|
gen_asm_stdout $abi bn/asm/x86_64-mont5.pl crypto/bn/mont5-$abi-x86_64.s
|
|
|
|
gen_asm_stdout $abi bn/asm/x86_64-gf2m.pl crypto/bn/gf2m-$abi-x86_64.s
|
|
|
|
gen_asm_stdout $abi camellia/asm/cmll-x86_64.pl crypto/camellia/cmll-$abi-x86_64.s
|
|
|
|
gen_asm_stdout $abi md5/asm/md5-x86_64.pl crypto/md5/md5-$abi-x86_64.s
|
|
|
|
gen_asm_stdout $abi modes/asm/ghash-x86_64.pl crypto/modes/ghash-$abi-x86_64.s
|
|
|
|
gen_asm_stdout $abi rc4/asm/rc4-x86_64.pl crypto/rc4/rc4-$abi-x86_64.s
|
|
|
|
gen_asm_stdout $abi rc4/asm/rc4-md5-x86_64.pl crypto/rc4/rc4-md5-$abi-x86_64.s
|
|
|
|
gen_asm_stdout $abi sha/asm/sha1-x86_64.pl crypto/sha/sha1-$abi-x86_64.s
|
|
|
|
gen_asm $abi sha/asm/sha512-x86_64.pl crypto/sha/sha256-$abi-x86_64.S
|
|
|
|
gen_asm $abi sha/asm/sha512-x86_64.pl crypto/sha/sha512-$abi-x86_64.S
|
|
|
|
gen_asm_stdout $abi whrlpool/asm/wp-x86_64.pl crypto/whrlpool/wp-$abi-x86_64.s
|
|
|
|
gen_asm $abi x86_64cpuid.pl crypto/cpuid-$abi-x86_64.S
|
2014-12-07 01:43:58 +01:00
|
|
|
done
|
|
|
|
|
2014-12-07 00:47:30 +01:00
|
|
|
# copy libtls source
|
2014-12-07 01:43:58 +01:00
|
|
|
echo copying libtls source
|
2015-04-30 11:44:35 +02:00
|
|
|
rm -f tls/*.c tls/*.h libtls/src/*.c libtls/src/*.h
|
2014-12-07 00:47:30 +01:00
|
|
|
for i in `awk '/SOURCES|HEADERS/ { print $3 }' tls/Makefile.am` ; do
|
2015-02-15 03:03:39 +01:00
|
|
|
if [ -e $libtls_src/$i ]; then
|
|
|
|
$CP $libtls_src/$i tls
|
2015-04-30 11:44:35 +02:00
|
|
|
$CP $libtls_src/$i libtls-standalone/src
|
2015-02-15 03:03:39 +01:00
|
|
|
fi
|
2014-12-07 00:47:30 +01:00
|
|
|
done
|
2015-08-31 14:49:50 +02:00
|
|
|
|
|
|
|
$CP_LIBC $libc_src/string/strsep.c tls
|
|
|
|
$CP_LIBC $libc_src/string/strsep.c libtls-standalone/compat
|
|
|
|
|
2015-05-02 08:40:33 +02:00
|
|
|
mkdir -p libtls-standalone/m4
|
|
|
|
$CP m4/check*.m4 \
|
|
|
|
m4/disable*.m4 \
|
|
|
|
libtls-standalone/m4
|
|
|
|
sed -e "s/compat\///" crypto/Makefile.am.arc4random > \
|
|
|
|
libtls-standalone/compat/Makefile.am.arc4random
|
2014-12-06 18:20:56 +01:00
|
|
|
|
2014-12-07 00:47:30 +01:00
|
|
|
# copy openssl(1) source
|
2014-12-07 01:43:58 +01:00
|
|
|
echo "copying openssl(1) source"
|
2014-12-07 00:47:30 +01:00
|
|
|
$CP $libc_src/stdlib/strtonum.c apps
|
2015-07-11 21:23:44 +02:00
|
|
|
$CP $libcrypto_src/cert.pem apps
|
2014-12-07 00:11:59 +01:00
|
|
|
$CP $libcrypto_src/openssl.cnf apps
|
2015-07-11 21:23:44 +02:00
|
|
|
$CP $libcrypto_src/x509v3.cnf apps
|
2014-12-07 00:47:30 +01:00
|
|
|
for i in `awk '/SOURCES|HEADERS/ { print $3 }' apps/Makefile.am` ; do
|
|
|
|
if [ -e $openssl_app_src/$i ]; then
|
2014-12-08 00:07:21 +01:00
|
|
|
$CP $openssl_app_src/$i apps
|
2014-12-07 00:47:30 +01:00
|
|
|
fi
|
2014-08-28 04:46:43 +02:00
|
|
|
done
|
2014-07-10 13:07:09 +02:00
|
|
|
|
2014-12-07 00:47:30 +01:00
|
|
|
# copy libssl source
|
2014-12-07 01:43:58 +01:00
|
|
|
echo "copying libssl source"
|
2014-12-07 00:47:30 +01:00
|
|
|
rm -f ssl/*.c ssl/*.h
|
|
|
|
for i in `awk '/SOURCES|HEADERS/ { print $3 }' ssl/Makefile.am` ; do
|
2014-12-08 00:07:21 +01:00
|
|
|
$CP $libssl_src/src/ssl/$i ssl
|
2014-12-07 00:47:30 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
# copy libcrypto tests
|
2014-12-07 01:43:58 +01:00
|
|
|
echo "copying tests"
|
2015-02-07 03:17:31 +01:00
|
|
|
for i in `find $libcrypto_regress -name '*.c'`; do
|
|
|
|
$CP "$i" tests
|
2014-07-10 13:07:09 +02:00
|
|
|
done
|
2015-03-22 14:03:02 +01:00
|
|
|
$CP $libcrypto_regress/evp/evptests.txt tests
|
|
|
|
$CP $libcrypto_regress/aead/aeadtests.txt tests
|
|
|
|
$CP $libcrypto_regress/pqueue/expected.txt tests/pq_expected.txt
|
2014-12-07 00:47:30 +01:00
|
|
|
|
|
|
|
# copy libc tests
|
2014-07-21 11:21:59 +02:00
|
|
|
$CP $libc_regress/arc4random-fork/arc4random-fork.c tests/arc4randomforktest.c
|
|
|
|
$CP $libc_regress/explicit_bzero/explicit_bzero.c tests
|
2015-03-22 14:03:02 +01:00
|
|
|
$CP $libc_src/string/memmem.c tests
|
2014-07-21 11:21:59 +02:00
|
|
|
$CP $libc_regress/timingsafe/timingsafe.c tests
|
2014-07-10 13:07:09 +02:00
|
|
|
|
2014-12-07 00:47:30 +01:00
|
|
|
# copy libssl tests
|
|
|
|
$CP $libssl_regress/ssl/testssl tests
|
2015-02-07 03:17:31 +01:00
|
|
|
for i in `find $libssl_regress -name '*.c'`; do
|
|
|
|
$CP "$i" tests
|
|
|
|
done
|
2015-06-30 05:49:37 +02:00
|
|
|
$CP $libssl_regress/unit/tests.h tests
|
2014-12-07 00:47:30 +01:00
|
|
|
$CP $libssl_regress/certs/ca.pem tests
|
|
|
|
$CP $libssl_regress/certs/server.pem tests
|
2015-03-22 14:03:02 +01:00
|
|
|
|
2014-07-10 13:07:09 +02:00
|
|
|
chmod 755 tests/testssl
|
|
|
|
|
2015-03-22 01:04:54 +01:00
|
|
|
# add headers
|
2014-07-10 13:07:09 +02:00
|
|
|
(cd include/openssl
|
2014-07-21 11:21:59 +02:00
|
|
|
$CP Makefile.am.tpl Makefile.am
|
2014-07-10 13:07:09 +02:00
|
|
|
for i in `ls -1 *.h|sort`; do
|
|
|
|
echo "opensslinclude_HEADERS += $i" >> Makefile.am
|
|
|
|
done
|
|
|
|
)
|
|
|
|
|
2015-05-04 05:25:22 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2014-07-11 05:06:10 +02:00
|
|
|
# apply local patches (Windows support)
|
|
|
|
for i in patches/*.patch; do
|
|
|
|
patch -p0 < $i
|
|
|
|
done
|
|
|
|
|
2014-12-07 00:11:59 +01:00
|
|
|
# copy manpages
|
2015-03-22 01:04:54 +01:00
|
|
|
echo "copying manpages"
|
2015-05-04 05:25:22 +02:00
|
|
|
echo dist_man_MANS= > man/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
|
2014-10-13 13:12:07 +02:00
|
|
|
|
2015-05-04 05:25:22 +02:00
|
|
|
(cd man
|
2014-10-13 13:12:07 +02:00
|
|
|
# update new-style manpages
|
|
|
|
for i in `ls -1 $libssl_src/src/doc/ssl/*.3 | sort`; do
|
|
|
|
NAME=`basename "$i"`
|
2014-12-08 00:07:21 +01:00
|
|
|
$CP $i .
|
2014-10-13 13:12:07 +02:00
|
|
|
echo "dist_man_MANS += $NAME" >> Makefile.am
|
|
|
|
done
|
2015-05-04 05:25:22 +02:00
|
|
|
|
2015-02-15 01:15:15 +01:00
|
|
|
for i in `ls -1 $libcrypto_src/man/*.3 | sort`; do
|
|
|
|
NAME=`basename "$i"`
|
|
|
|
$CP $i .
|
|
|
|
echo "dist_man_MANS += $NAME" >> Makefile.am
|
|
|
|
done
|
2014-10-13 13:12:07 +02:00
|
|
|
|
|
|
|
# convert remaining POD manpages
|
2014-10-26 15:23:03 +01:00
|
|
|
for i in `ls -1 $libssl_src/src/doc/crypto/*.pod | sort`; do
|
|
|
|
BASE=`echo $i|sed -e "s/\.pod//"`
|
|
|
|
NAME=`basename "$BASE"`
|
|
|
|
# reformat file if new
|
2015-08-03 14:39:21 +02:00
|
|
|
if [ ! -f $NAME.3 -o $BASE.pod -nt $NAME.3 -o ../include/openssl/opensslv.h -nt $NAME.3 ]; then
|
2014-10-26 15:23:03 +01:00
|
|
|
echo processing $NAME
|
|
|
|
pod2man --official --release="LibreSSL $VERSION" --center=LibreSSL \
|
|
|
|
--section=3 $POD2MAN --name=$NAME < $BASE.pod > $NAME.3
|
|
|
|
fi
|
|
|
|
echo "dist_man_MANS += $NAME.3" >> Makefile.am
|
2014-07-11 18:08:57 +02:00
|
|
|
done
|
2014-07-11 12:14:48 +02:00
|
|
|
)
|
2015-05-04 05:25:22 +02:00
|
|
|
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
|