Update quilt series parster to understand %{name}.
This commit is contained in:
parent
bf5e09bbb8
commit
0cffc9ae0c
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Autogeneries the quilt `series` from the patch order in the spec file.
|
# Autogeneries the quilt `series` from the patch order in the spec file.
|
||||||
# We don't use `quilt setup` because it makes a huge mess and doesn't work.
|
# We don't use `quilt setup` because it makes a huge mess and doesn't work.
|
||||||
|
component="glibc"
|
||||||
rm -f series.new
|
rm -f series.new
|
||||||
extra_args="--fuzz=0"
|
extra_args="--fuzz=0"
|
||||||
count=0
|
count=0
|
||||||
@ -17,6 +18,7 @@ for i in `grep '^%patch' glibc.spec | sed -e 's,%patch,,g' -e 's, ,_,g'`; do
|
|||||||
# This way we transform the patch # list into a patch file list in order.
|
# This way we transform the patch # list into a patch file list in order.
|
||||||
grep "Patch${num}: " glibc.spec \
|
grep "Patch${num}: " glibc.spec \
|
||||||
| sed -e 's,Patch.*: ,,g' -e "s,\$, ${args[@]} ${extra_args},g" \
|
| sed -e 's,Patch.*: ,,g' -e "s,\$, ${args[@]} ${extra_args},g" \
|
||||||
|
| sed -e "s,%{name},${component},g" \
|
||||||
>> series.new
|
>> series.new
|
||||||
((count++))
|
((count++))
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user