aboutsummaryrefslogtreecommitdiff
path: root/openssl/update-snapshot.sh
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2008-03-28 22:06:14 +0000
committerRob Austein <sra@hactrn.net>2008-03-28 22:06:14 +0000
commitd59d3e4dc2fea94c3fde72614deddbff8b386484 (patch)
tree1dce720eb76b07af5f813c405c97eab6bc58452e /openssl/update-snapshot.sh
parent5aa99a66a4cd1064eda1880879e034b7ae8058ac (diff)
Switch to using OpenSSL HEAD snapshot, for the new CMS code
svn path=/openssl/Makefile; revision=1566
Diffstat (limited to 'openssl/update-snapshot.sh')
-rwxr-xr-xopenssl/update-snapshot.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/openssl/update-snapshot.sh b/openssl/update-snapshot.sh
new file mode 100755
index 00000000..74ae157d
--- /dev/null
+++ b/openssl/update-snapshot.sh
@@ -0,0 +1,27 @@
+#!/bin/sh -
+# $Id$
+#
+# Fetch today's OpenSSL snapshot and do everything needed to make it
+# the current code other than the svn commit.
+
+version="SNAP-$(date +%Y%m%d)"
+
+tarball="openssl-${version}.tar.gz"
+
+/usr/bin/fetch -m -p "ftp://ftp.openssl.org/snapshot/${tarball}" || exit
+
+/bin/rm -f openssl
+
+for i in *.tar.gz
+do
+ if [ "$i" != "$tarball" ]
+ then
+ /bin/rm -rf "${i%.tar.gz}"
+ /usr/local/bin/svn rm "$i"
+ fi
+done
+
+/usr/bin/awk -v version="$version" '/^VERSION = / {$NF = version} {print}' Makefile >Makefile.$$ &&
+/bin/mv Makefile.$$ Makefile
+
+/usr/local/bin/svn add "$tarball"