aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-07-31 18:18:45 -0500
committerBrent Cook <bcook@openbsd.org>2014-07-31 22:06:14 -0500
commit05f8996169db647bc4a5ae657c6d7967e977f6bd (patch)
treeac470532e3d031660ddf29825c8160702c4baac9
parent3e21619bcf5bc37027bcd01d8eac2d9745e2521e (diff)
downloadportable-05f8996169db647bc4a5ae657c6d7967e977f6bd.tar.gz
portable-05f8996169db647bc4a5ae657c6d7967e977f6bd.tar.bz2
portable-05f8996169db647bc4a5ae657c6d7967e977f6bd.zip
tie libressl branch to openbsd branch, bump ver.
Added OPENBSD_BRANCH to set what branch update.sh should checkout.
-rw-r--r--OPENBSD_BRANCH1
-rw-r--r--VERSION2
-rwxr-xr-xupdate.sh15
3 files changed, 9 insertions, 9 deletions
diff --git a/OPENBSD_BRANCH b/OPENBSD_BRANCH
new file mode 100644
index 0000000..16a1995
--- /dev/null
+++ b/OPENBSD_BRANCH
@@ -0,0 +1 @@
OPENBSD_5_6
diff --git a/VERSION b/VERSION
index 7ec1d6d..2165f8f 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
2.1.0 2.0.4
diff --git a/update.sh b/update.sh
index a928807..21a516d 100755
--- a/update.sh
+++ b/update.sh
@@ -1,18 +1,19 @@
1#!/usr/bin/env bash 1#!/usr/bin/env bash
2set -e 2set -e
3 3
4# resync this library with the upstream project, remove old submodule dirs 4openbsd_branch=`cat OPENBSD_BRANCH`
5if [ -d openbsd ]; then 5libressl_version=`cat VERSION`
6 (cd openbsd 6
7 git checkout master 7if [ ! -d openbsd ]; then
8 git pull)
9else
10 if [ -z "$LIBRESSL_GIT" ]; then 8 if [ -z "$LIBRESSL_GIT" ]; then
11 git clone https://github.com/libressl-portable/openbsd.git 9 git clone https://github.com/libressl-portable/openbsd.git
12 else 10 else
13 git clone $LIBRESSL_GIT/openbsd 11 git clone $LIBRESSL_GIT/openbsd
14 fi 12 fi
15fi 13fi
14(cd openbsd
15 git checkout $openbsd_branch
16 git pull)
16 17
17dir=`pwd` 18dir=`pwd`
18libssl_src=$dir/openbsd/src/lib/libssl 19libssl_src=$dir/openbsd/src/lib/libssl
@@ -23,8 +24,6 @@ libcrypto_src=$dir/openbsd/src/lib/libcrypto
23openssl_cmd_src=$dir/openbsd/src/usr.sbin/openssl 24openssl_cmd_src=$dir/openbsd/src/usr.sbin/openssl
24libcrypto_regress=$dir/openbsd/src/regress/lib/libcrypto 25libcrypto_regress=$dir/openbsd/src/regress/lib/libcrypto
25 26
26libressl_version=`cat VERSION`
27
28source $libssl_src/ssl/shlib_version 27source $libssl_src/ssl/shlib_version
29libssl_version=$major:$minor:0 28libssl_version=$major:$minor:0
30echo libssl version $libssl_version 29echo libssl version $libssl_version