Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(635)

Side by Side Diff: openssl/util/cygwin.sh

Issue 9254031: Upgrade chrome's OpenSSL to same version Android ships with. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/openssl/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « openssl/util/copy.pl ('k') | openssl/util/deltree.com » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # 2 #
3 # This script configures, builds and packs the binary package for 3 # This script configures, builds and packs the binary package for
4 # the Cygwin net distribution version of OpenSSL 4 # the Cygwin net distribution version of OpenSSL
5 # 5 #
6 6
7 # Uncomment when debugging 7 # Uncomment when debugging
8 #set -x 8 #set -x
9 9
10 CONFIG_OPTIONS="--prefix=/usr shared no-idea no-rc5 no-mdc2" 10 CONFIG_OPTIONS="--prefix=/usr shared zlib no-idea no-rc5"
11 INSTALL_PREFIX=/tmp/install 11 INSTALL_PREFIX=/tmp/install/INSTALL
12 12
13 VERSION= 13 VERSION=
14 SUBVERSION=$1 14 SUBVERSION=$1
15 15
16 function cleanup() 16 function cleanup()
17 { 17 {
18 rm -rf ${INSTALL_PREFIX}/etc 18 rm -rf ${INSTALL_PREFIX}/etc
19 rm -rf ${INSTALL_PREFIX}/usr 19 rm -rf ${INSTALL_PREFIX}/usr
20 } 20 }
21 21
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 { 59 {
60 README_DIR=${INSTALL_PREFIX}/usr/share/doc/Cygwin 60 README_DIR=${INSTALL_PREFIX}/usr/share/doc/Cygwin
61 README_FILE=${README_DIR}/openssl-${VERSION}.README 61 README_FILE=${README_DIR}/openssl-${VERSION}.README
62 62
63 mkdir -p ${README_DIR} 63 mkdir -p ${README_DIR}
64 cat > ${README_FILE} <<- EOF 64 cat > ${README_FILE} <<- EOF
65 The Cygwin version has been built using the following configure: 65 The Cygwin version has been built using the following configure:
66 66
67 ./config ${CONFIG_OPTIONS} 67 ./config ${CONFIG_OPTIONS}
68 68
69 » The IDEA, RC5 and MDC2 algorithms are disabled due to patent and/or 69 » The IDEA and RC5 algorithms are disabled due to patent and/or
70 licensing issues. 70 licensing issues.
71 EOF 71 EOF
72 } 72 }
73 73
74 function create_profile_files() 74 function create_profile_files()
75 { 75 {
76 PROFILE_DIR=${INSTALL_PREFIX}/etc/profile.d 76 PROFILE_DIR=${INSTALL_PREFIX}/etc/profile.d
77 77
78 mkdir -p $PROFILE_DIR 78 mkdir -p $PROFILE_DIR
79 cat > ${PROFILE_DIR}/openssl.sh <<- "EOF" 79 cat > ${PROFILE_DIR}/openssl.sh <<- "EOF"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 create_cygwin_readme 117 create_cygwin_readme
118 118
119 create_profile_files 119 create_profile_files
120 120
121 cd ${INSTALL_PREFIX} 121 cd ${INSTALL_PREFIX}
122 chmod u+w usr/lib/engines/*.so 122 chmod u+w usr/lib/engines/*.so
123 strip usr/bin/*.exe usr/bin/*.dll usr/lib/engines/*.so 123 strip usr/bin/*.exe usr/bin/*.dll usr/lib/engines/*.so
124 chmod u-w usr/lib/engines/*.so 124 chmod u-w usr/lib/engines/*.so
125 125
126 # Runtime package 126 # Runtime package
127 find etc usr/bin usr/lib/engines usr/share/doc usr/ssl/certs \ 127 tar cjf libopenssl${VERSION//[!0-9]/}-${VERSION}-${SUBVERSION}.tar.bz2 \
128 usr/ssl/man/man[157] usr/ssl/misc usr/ssl/openssl.cnf usr/ssl/private \ 128 usr/bin/cyg*dll
129 # Base package
130 find etc usr/bin/openssl.exe usr/bin/c_rehash usr/lib/engines usr/share/doc \
131 usr/ssl/certs usr/ssl/man/man[157] usr/ssl/misc usr/ssl/openssl.cnf \
132 usr/ssl/private \
129 -empty -o \! -type d | 133 -empty -o \! -type d |
130 tar cjfT openssl-${VERSION}-${SUBVERSION}.tar.bz2 - 134 tar cjfT openssl-${VERSION}-${SUBVERSION}.tar.bz2 -
131 # Development package 135 # Development package
132 find usr/include usr/lib/*.a usr/lib/pkgconfig usr/ssl/man/man3 \ 136 find usr/include usr/lib/*.a usr/lib/pkgconfig usr/ssl/man/man3 \
133 -empty -o \! -type d | 137 -empty -o \! -type d |
134 tar cjfT openssl-devel-${VERSION}-${SUBVERSION}.tar.bz2 - 138 tar cjfT openssl-devel-${VERSION}-${SUBVERSION}.tar.bz2 -
135 139
136 ls -l openssl-${VERSION}-${SUBVERSION}.tar.bz2 140 ls -l openssl-${VERSION}-${SUBVERSION}.tar.bz2
137 ls -l openssl-devel-${VERSION}-${SUBVERSION}.tar.bz2 141 ls -l openssl-devel-${VERSION}-${SUBVERSION}.tar.bz2
142 ls -l libopenssl${VERSION//[!0-9]/}-${VERSION}-${SUBVERSION}.tar.bz2
138 143
139 cleanup 144 cleanup
140 145
141 exit 0 146 exit 0
OLDNEW
« no previous file with comments | « openssl/util/copy.pl ('k') | openssl/util/deltree.com » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698