| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
. ${top_srcdir-.}/tests/common.sh |
| 4 |
|
| 5 |
mkdir orig new1 new2 |
| 6 |
cat << EOF > orig/pmac_support.c |
| 7 |
a1 |
| 8 |
b1 |
| 9 |
c1 |
| 10 |
d1 |
| 11 |
stuff |
| 12 |
d1 |
| 13 |
c1 |
| 14 |
b1 |
| 15 |
a1 |
| 16 |
|
| 17 |
pad |
| 18 |
pad |
| 19 |
pad |
| 20 |
pad |
| 21 |
pad |
| 22 |
pad |
| 23 |
pad |
| 24 |
EOF |
| 25 |
cat << EOF > new1/pmac_support.c |
| 26 |
a1 |
| 27 |
b1 |
| 28 |
c1 |
| 29 |
d1 |
| 30 |
insert above stuff |
| 31 |
stuff |
| 32 |
d1 |
| 33 |
c1 |
| 34 |
b1 |
| 35 |
a1 |
| 36 |
|
| 37 |
pad |
| 38 |
pad |
| 39 |
pad |
| 40 |
pad |
| 41 |
large amount of stuff |
| 42 |
large amount of stuff |
| 43 |
large amount of stuff |
| 44 |
large amount of stuff |
| 45 |
large amount of stuff |
| 46 |
large amount of stuff |
| 47 |
large amount of stuff |
| 48 |
large amount of stuff |
| 49 |
large amount of stuff |
| 50 |
large amount of stuff |
| 51 |
large amount of stuff |
| 52 |
large amount of stuff |
| 53 |
large amount of stuff |
| 54 |
large amount of stuff |
| 55 |
large amount of stuff |
| 56 |
large amount of stuff |
| 57 |
large amount of stuff |
| 58 |
pad |
| 59 |
pad |
| 60 |
pad |
| 61 |
EOF |
| 62 |
cat << EOF > new2/pmac_support.c |
| 63 |
a1 |
| 64 |
b1 |
| 65 |
c1 |
| 66 |
d1 |
| 67 |
insert above stuff |
| 68 |
large amount of stuff |
| 69 |
large amount of stuff |
| 70 |
large amount of stuff |
| 71 |
large amount of stuff |
| 72 |
large amount of stuff |
| 73 |
large amount of stuff |
| 74 |
large amount of stuff |
| 75 |
large amount of stuff |
| 76 |
large amount of stuff |
| 77 |
large amount of stuff |
| 78 |
large amount of stuff |
| 79 |
large amount of stuff |
| 80 |
large amount of stuff |
| 81 |
large amount of stuff |
| 82 |
large amount of stuff |
| 83 |
large amount of stuff |
| 84 |
large amount of stuff |
| 85 |
stuff |
| 86 |
d1 |
| 87 |
c1 |
| 88 |
b1 |
| 89 |
a1 |
| 90 |
|
| 91 |
pad |
| 92 |
pad |
| 93 |
pad |
| 94 |
pad |
| 95 |
pad |
| 96 |
pad |
| 97 |
pad |
| 98 |
EOF |
| 99 |
|
| 100 |
${DIFF} -ur orig new1 > patch1 |
| 101 |
${DIFF} -ur orig new2 > patch2 |
| 102 |
${INTERDIFF} patch1 patch2 2>errors > patch1-2 || exit 1 |
| 103 |
[ -s errors ] && exit 1 |
| 104 |
cd new1 |
| 105 |
${PATCH} < ../patch1-2 || exit 1 |
| 106 |
cd .. |
| 107 |
diff -ur new1 new2 || exit 1 |