author | Jon Tibble <meths@btinternet.com> |
Mon, 04 May 2015 14:04:39 +0100 | |
branch | oi_151a |
changeset 254 | 9c2a4ac793f0 |
parent 0 | b34509ac961f |
permissions | -rwxr-xr-x |
0 | 1 |
#!/bin/bash |
2 |
# |
|
3 |
# CDDL HEADER START |
|
4 |
# |
|
5 |
# The contents of this file are subject to the terms of the |
|
6 |
# Common Development and Distribution License (the "License"). |
|
7 |
# You may not use this file except in compliance with the License. |
|
8 |
# |
|
9 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
10 |
# or http://www.opensolaris.org/os/licensing. |
|
11 |
# See the License for the specific language governing permissions |
|
12 |
# and limitations under the License. |
|
13 |
# |
|
14 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
15 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
16 |
# If applicable, add the following below this CDDL HEADER, with the |
|
17 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
18 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
19 |
# |
|
20 |
# CDDL HEADER END |
|
21 |
# |
|
22 |
# |
|
23 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
|
24 |
# Use is subject to license terms. |
|
25 |
# |
|
26 |
# ident "@(#)apply_patches.sh 1.1 09/10/05 SMI" |
|
27 |
||
28 |
PATCHDB="patches.applied" |
|
29 |
mkdir -p ${PATCHDB} |
|
30 |
||
31 |
for file in \ |
|
32 |
bash40-001 \ |
|
33 |
bash40-002 \ |
|
34 |
bash40-003 \ |
|
35 |
bash40-004 \ |
|
36 |
bash40-005 \ |
|
37 |
bash40-006 \ |
|
38 |
bash40-007 \ |
|
39 |
bash40-008 \ |
|
40 |
bash40-009 \ |
|
41 |
bash40-010 \ |
|
42 |
bash40-011 \ |
|
43 |
bash40-012 \ |
|
44 |
bash40-013 \ |
|
45 |
bash40-014 \ |
|
46 |
bash40-015 \ |
|
47 |
bash40-016 \ |
|
48 |
bash40-017 \ |
|
49 |
bash40-018 \ |
|
50 |
bash40-019 \ |
|
51 |
bash40-020 \ |
|
52 |
bash40-021 \ |
|
53 |
bash40-022 \ |
|
54 |
bash40-023 \ |
|
55 |
bash40-024 \ |
|
56 |
bash40-025 \ |
|
57 |
bash40-026 \ |
|
58 |
bash40-027 \ |
|
254
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
59 |
bash40-028 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
60 |
bash40-029 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
61 |
bash40-030 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
62 |
bash40-031 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
63 |
bash40-032 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
64 |
bash40-033 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
65 |
bash40-034 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
66 |
bash40-035 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
67 |
bash40-036 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
68 |
bash40-037 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
69 |
bash40-038 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
70 |
bash40-039 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
71 |
bash40-040 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
72 |
bash40-041 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
73 |
bash40-042 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
74 |
bash40-043 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
75 |
bash40-044 \ |
9c2a4ac793f0
Bash patch catchup including shellshock
Jon Tibble <meths@btinternet.com>
parents:
0
diff
changeset
|
76 |
disable-function-imports |
0 | 77 |
do |
78 |
if [ ! -f ${PATCHDB}/${file}.applied ] ; then |
|
79 |
echo "Applying upstream bash 4.0 patch ${file}." |
|
80 |
gpatch -p0 < ../Patches-4.0/${file} || exit 1 |
|
81 |
touch ${PATCHDB}/${file}.applied |
|
82 |
else |
|
83 |
echo "Patch ${file} has already been applied." |
|
84 |
fi |
|
85 |
done |
|
86 |
||
87 |
for file in \ |
|
88 |
config.h.in.0.diff \ |
|
89 |
config-top.h.1.diff \ |
|
90 |
Makefile.in.3.diff \ |
|
91 |
glob.c.4.diff \ |
|
92 |
snprintf.c.5.diff \ |
|
93 |
variables.c.6.diff \ |
|
94 |
signames.c.7.diff \ |
|
95 |
rlprivate.h.8.diff \ |
|
96 |
xmbsrtowcs.c.9.diff \ |
|
97 |
configure.10.diff \ |
|
98 |
input.c.11.diff \ |
|
99 |
input_avail.c.12.diff \ |
|
100 |
rlconf.h.13.diff \ |
|
101 |
bashref.info.14.diff \ |
|
102 |
bash.man.15.diff \ |
|
103 |
rbash.man.16.diff |
|
104 |
do |
|
105 |
if [ ! -f ${PATCHDB}/${file}.applied ] ; then |
|
106 |
echo "Applying Solaris patch ${file}." |
|
107 |
gpatch -p0 < ../Solaris/diffs/${file} || exit 1 |
|
108 |
touch ${PATCHDB}/${file}.applied |
|
109 |
else |
|
110 |
echo "Patch ${file} has already been applied." |
|
111 |
fi |
|
112 |
done |
|
113 |
||
114 |
touch .patched |
|
115 |
||
116 |
exit 0 |
|
117 |