Last change
on this file since 349 was
349,
checked in by ehem, 10 years ago
|
Rework the openwrt/patch target. Instead of patching with a hand-rolled
list of patches, scan the appropriate directories for patch files. Patch
filenames now MUST match the pattern [0-9]+(-[0-9]*:[0-9]*)_<name>. The
lead digits specify order of application, lower numbers are applied
first. If present, the two subsequent numbers indicate a range of
Subversion revisions that a given patch applies to. If a number is
absent, the range is interpreted to include all older revisions or all
newer revisions as appropriate.
Adjust openwrt/unpatch target to match (patches are now removed in
reverse order). Adjust the generate script to match.
|
File size:
501 bytes
|
Line | |
---|
1 | # |
---|
2 | # generate |
---|
3 | # |
---|
4 | # execucte this script with bash. |
---|
5 | # Example given |
---|
6 | # bash openwrt/patches/generate |
---|
7 | # |
---|
8 | |
---|
9 | TD=$(dirname $0) # This Directory |
---|
10 | |
---|
11 | function file2diff |
---|
12 | { |
---|
13 | F=${1} # the input File |
---|
14 | P=${2} # (optional) Prefix |
---|
15 | L=$( cat ${TD}/${F} | wc -l ) |
---|
16 | echo "--- /dev/null" |
---|
17 | echo "+++ ${P}${F} generated" |
---|
18 | echo "@@ -0,0 +1,${L} @@" |
---|
19 | sed -e 's/^/+/' ${TD}/$F |
---|
20 | } |
---|
21 | |
---|
22 | P=011_disable_all_openwrt_packages |
---|
23 | cat ${TD}/all/in.${P} > ${TD}/all/${P} |
---|
24 | file2diff debwrt_disables_packages.sed ./scripts/ >> ${TD}/${P} |
---|
Note: See
TracBrowser
for help on using the repository browser.