summaryrefslogtreecommitdiff
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:08:30 -0500
commitc95574be9296988962cb1358c969144dc382061b (patch)
tree2038339bce1c7507141bb60a90655d65d521bd7e
parent3e21619bcf5bc37027bcd01d8eac2d9745e2521e (diff)
downloadportable-c95574be9296988962cb1358c969144dc382061b.tar.gz
portable-c95574be9296988962cb1358c969144dc382061b.tar.bz2
portable-c95574be9296988962cb1358c969144dc382061b.zip
tie master libressl branch to openbsd master
Added OPENBSD_BRANCH to set what branch update.sh should checkout.
-rw-r--r--OPENBSD_BRANCH1
-rwxr-xr-xupdate.sh15
2 files changed, 8 insertions, 8 deletions
diff --git a/OPENBSD_BRANCH b/OPENBSD_BRANCH
new file mode 100644
index 0000000..1f7391f
--- /dev/null
+++ b/OPENBSD_BRANCH
@@ -0,0 +1 @@
master
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