blob: 74ae157dff028da1c51e8c46911d5a53830d8fed (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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"
|