This repository was archived by the owner on May 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 4
4
abrequire arch
5
5
6
6
PATCHFLAGS=" -Np1 -t"
7
+ RPATCHFLAGS=" -Rp1 -t"
7
8
8
9
if [ ! -f .patch ]
9
10
then
14
15
then
15
16
for i in $( grep -v ' ^#' autobuild/patches/series) ; do
16
17
abinfo " Applying patch $i ..."
17
- patch $PATCHFLAGS -i " autobuild/patches/$i " || abdie " Applying patch $i failed"
18
+ patch $PATCHFLAGS -i " autobuild/patches/$i " || abdie " Applying patch $i failed: $? . "
18
19
done
19
20
touch .patch
20
21
elif [ -d autobuild/patches ]
21
22
then
22
23
for i in autobuild/patches/* .{patch,diff}; do
23
24
abinfo " Applying patch $i ..."
24
- patch $PATCHFLAGS -i " $i " || abdie " Applying patch $i failed"
25
+ patch $PATCHFLAGS -i " $i " || abdie " Applying patch $i failed: $? . "
25
26
done
26
27
for i in autobuild/patches/* .{patch,diff}." ${CROSS:- $ARCH } " ; do
27
28
abinfo " Applying patch $i (for ${CROSS:- $ARCH } ) ..."
28
29
patch $PATCHFLAGS -i " $i " || abdie " Applying patch $i for ${CROSS:- $ARCH } failed: $? ."
29
30
done
30
- touch .patch
31
+ for i in autobuild/patches/* .r{patch,diff}; do
32
+ abinfo " Reverting patch $i ..."
33
+ patch $RPATCHFLAGS -i " $i " || abdie " Reverting patch $i failed: $? ."
34
+ done
35
+ for i in autobuild/patches/* .r{patch,diff}." ${CROSS:- $ARCH } " ; do
36
+ abinfo " Applying patch $i (for ${CROSS:- $ARCH } ) ..."
37
+ patch $RPATCHFLAGS -i " $i " || abdie " Reverting patch $i for ${CROSS:- $ARCH } failed: $? ."
38
+ done
39
+ touch " $SRCDIR " /.patch
31
40
fi
32
41
fi
You can’t perform that action at this time.
0 commit comments