2
# Script to build release-archives with
2
# Script to build release-archives with. Note that this requires a checkout
3
# from CVS and you should first run ./buildconf and build curl once.
5
#***************************************************************************
7
# Project ___| | | | _ \| |
9
# | (__| |_| | _ <| |___
10
# \___|\___/|_| \_\_____|
12
# Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
14
# This software is licensed as described in the file COPYING, which
15
# you should have received as part of this distribution. The terms
16
# are also available at http://curl.haxx.se/docs/copyright.html.
18
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
19
# copies of the Software, and permit persons to whom the Software is
20
# furnished to do so, under the terms of the COPYING file.
22
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
23
# KIND, either express or implied.
25
# $Id: maketgz,v 1.33 2009-02-23 09:36:08 bagder Exp $
26
###########################################################################
38
61
# Replace version number in header file:
39
62
sed 's/#define CURL_VERSION .*/#define CURL_VERSION "'$curlversion'"/g' $CHEADER >$CHEADER.dist
41
echo "generate VC8 makefiles"
42
# Generate VC8 versions from the VC6 Makefile versions
43
perl -pe 's%/GX /DWIN32 /YX%/EHsc /DWIN32%;' -e 's%/GZ%/RTC1%;' -e 's%wsock32.lib%wsock32.lib bufferoverflowu.lib%g;' -e 's%(VC)6%${1}8%gi;' lib/Makefile.vc6 > lib/Makefile.vc8.dist
44
perl -pe "s%/GX /DWIN32 /YX%/EHsc /DWIN32%;" -e 's%/GZ%/RTC1%;' -e 's%wsock32.lib%wsock32.lib bufferoverflowu.lib%g;' -e 's%(VC)6%${1}8%gi;' -e 's/^#MANIFESTTOOL/MANIFESTTOOL/' src/Makefile.vc6 > src/Makefile.vc8.dist
64
# Generate VC8 and VC9 versions from the VC6 Makefile versions
65
for ver in vc8 vc9; do
66
make -f Makefile.dist $ver
67
mv src/Makefile.$ver src/Makefile.$ver.dist
68
mv lib/Makefile.$ver lib/Makefile.$ver.dist
46
71
# Replace version number in plist file:
47
72
PLIST=lib/libcurl.plist
119
144
bzip2="curl-$version.tar.bz2"
120
145
echo "Generating $bzip2"
121
gzip -dc $targz | bzip2 - > $bzip2
146
gzip -dc $targz | bzip2 --best - > $bzip2
148
############################################################################
150
# Now make an lzma archive from the tar.gz original
153
lzma="curl-$version.tar.lzma"
154
echo "Generating $lzma"
155
gzip -dc $targz | lzma --best - > $lzma
123
157
############################################################################
144
178
echo "------------------"
145
179
echo "maketgz report:"
147
ls -l $targz $bzip2 $zip
149
md5sum $targz $bzip2 $zip
181
ls -l $targz $bzip2 $zip $lzma
152
echo "gpg -b -a $targz && gpg -b -a $bzip2 && gpg -b -a $zip"
184
echo "gpg -b -a $targz && gpg -b -a $bzip2 && gpg -b -a $zip && gpg -b -a $lzma"