diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2014-07-10 07:36:19 -0600 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2014-07-10 07:36:19 -0600 |
commit | 985fdadd45c1ccc385825bea21e96879ae3d9293 (patch) | |
tree | c61b95db1eda79b6a5a41ea63ff9d62e5efedbe3 /update.sh | |
parent | 2b6dbc39ef274d5298daad1ff864be8fc3c56537 (diff) | |
download | portable-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-x | update.sh | 39 |
1 files changed, 22 insertions, 17 deletions
@@ -2,16 +2,20 @@ | |||
2 | set -e | 2 | set -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 |
5 | if [ -d openbsd ]; then | ||
5 | git submodule init | 6 | git submodule init |
6 | git submodule update | 7 | git submodule update |
7 | rm -fr *-openbsd | 8 | else |
9 | git submodule add /cvs.b/libressl/openbsd | ||
10 | git submodule update | ||
11 | fi | ||
8 | 12 | ||
9 | libssl_src=openbsd/libssl | 13 | libssl_src=openbsd/src/lib/libssl |
10 | libssl_regress=openbsd/libssl-regress | 14 | libssl_regress=openbsd/src/regress/lib/libssl |
11 | libc_src=openbsd/libc | 15 | libc_src=openbsd/src/lib/libc |
12 | libc_regress=openbsd/libc-regress | 16 | libc_regress=openbsd/src/regress/lib/libc |
13 | libcrypto_src=openbsd/libcrypto | 17 | libcrypto_src=openbsd/src/lib/libcrypto |
14 | libcrypto_regress=openbsd/libcrypto-regress | 18 | libcrypto_regress=openbsd/src/regress/lib/libcrypto |
15 | 19 | ||
16 | source $libssl_src/ssl/shlib_version | 20 | source $libssl_src/ssl/shlib_version |
17 | libssl_version=$major:$minor:0 | 21 | libssl_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 |
324 | bounded_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 | # ) |
331 | for 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 |
333 | done | 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 |