~ubuntu-branches/ubuntu/natty/curl/natty-proposed

« back to all changes in this revision

Viewing changes to maketgz

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-05-24 21:12:19 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (3.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20090524211219-7jgcwuhl04ixuqsm
Tags: upstream-7.19.5
ImportĀ upstreamĀ versionĀ 7.19.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
# Script to build release-archives with
3
 
#
 
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.
 
4
#
 
5
#***************************************************************************
 
6
#                                  _   _ ____  _
 
7
#  Project                     ___| | | |  _ \| |
 
8
#                             / __| | | | |_) | |
 
9
#                            | (__| |_| |  _ <| |___
 
10
#                             \___|\___/|_| \_\_____|
 
11
#
 
12
# Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
 
13
#
 
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.
 
17
#
 
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.
 
21
#
 
22
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 
23
# KIND, either express or implied.
 
24
#
 
25
# $Id: maketgz,v 1.33 2009-02-23 09:36:08 bagder Exp $
 
26
###########################################################################
4
27
 
5
28
version=$1
6
29
 
38
61
# Replace version number in header file:
39
62
sed 's/#define CURL_VERSION .*/#define CURL_VERSION "'$curlversion'"/g' $CHEADER >$CHEADER.dist
40
63
 
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
 
69
done
45
70
 
46
71
# Replace version number in plist file:
47
72
PLIST=lib/libcurl.plist
118
143
 
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
 
147
 
 
148
############################################################################
 
149
#
 
150
# Now make an lzma archive from the tar.gz original
 
151
#
 
152
 
 
153
lzma="curl-$version.tar.lzma"
 
154
echo "Generating $lzma"
 
155
gzip -dc $targz | lzma --best - > $lzma
122
156
 
123
157
############################################################################
124
158
#
144
178
echo "------------------"
145
179
echo "maketgz report:"
146
180
echo ""
147
 
ls -l $targz $bzip2 $zip
148
 
 
149
 
md5sum $targz $bzip2 $zip
 
181
ls -l $targz $bzip2 $zip $lzma
150
182
 
151
183
echo "Run this:"
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"