aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2014-07-10 07:36:19 -0600
committerBob Beck <beck@cvs.openbsd.org>2014-07-10 07:36:19 -0600
commit985fdadd45c1ccc385825bea21e96879ae3d9293 (patch)
treec61b95db1eda79b6a5a41ea63ff9d62e5efedbe3 /update.sh
parent2b6dbc39ef274d5298daad1ff864be8fc3c56537 (diff)
downloadportable-985fdadd45c1ccc385825bea21e96879ae3d9293.tar.gz
portable-985fdadd45c1ccc385825bea21e96879ae3d9293.tar.bz2
portable-985fdadd45c1ccc385825bea21e96879ae3d9293.zip
update script to work rebased on cvs.openbsd.org
ok bcook@
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh39
1 files changed, 22 insertions, 17 deletions
diff --git a/update.sh b/update.sh
index 1c09f7f..7e118bf 100755
--- a/update.sh
+++ b/update.sh
@@ -2,16 +2,20 @@
2set -e 2set -e
3 3
4# resync this library with the upstream project, remove old submodule dirs 4# resync this library with the upstream project, remove old submodule dirs
5if [ -d openbsd ]; then
5git submodule init 6git submodule init
6git submodule update 7git submodule update
7rm -fr *-openbsd 8else
9git submodule add /cvs.b/libressl/openbsd
10git submodule update
11fi
8 12
9libssl_src=openbsd/libssl 13libssl_src=openbsd/src/lib/libssl
10libssl_regress=openbsd/libssl-regress 14libssl_regress=openbsd/src/regress/lib/libssl
11libc_src=openbsd/libc 15libc_src=openbsd/src/lib/libc
12libc_regress=openbsd/libc-regress 16libc_regress=openbsd/src/regress/lib/libc
13libcrypto_src=openbsd/libcrypto 17libcrypto_src=openbsd/src/lib/libcrypto
14libcrypto_regress=openbsd/libcrypto-regress 18libcrypto_regress=openbsd/src/regress/lib/libcrypto
15 19
16source $libssl_src/ssl/shlib_version 20source $libssl_src/ssl/shlib_version
17libssl_version=$major:$minor:0 21libssl_version=$major:$minor:0
@@ -320,17 +324,18 @@ echo "EXTRA_DIST += testssl ca.pem server.pem" >> tests/Makefile.am
320 done 324 done
321) 325)
322 326
327#XXX fix this in a header and remove it.
323# remove unsupported __bounded__ attributes 328# remove unsupported __bounded__ attributes
324bounded_excludes=( 329#bounded_excludes=(
325 include/openssl/bio.h 330# include/openssl/bio.h
326 include/openssl/buffer.h 331# include/openssl/buffer.h
327 include/openssl/md5.h 332# include/openssl/md5.h
328 include/openssl/sha.h 333# include/openssl/sha.h
329 crypto/chacha/chacha-merged.c 334# crypto/chacha/chacha-merged.c
330 ) 335# )
331for i in "${bounded_excludes[@]}"; do 336#for i in "${bounded_excludes[@]}"; do
332 sed -ie 's/__attribute__.*((__bounded__.*/;/' $i 337# sed -ie 's/__attribute__.*((__bounded__.*/;/' $i
333done 338#done
334 339
335(cd ssl 340(cd ssl
336 sed -e "s/libssl-version/${libssl_version}/" Makefile.am.tpl > Makefile.am 341 sed -e "s/libssl-version/${libssl_version}/" Makefile.am.tpl > Makefile.am