2015-07-07 18:04:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# 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.
|
2015-11-10 02:26:45 +00:00
|
|
|
component="glibc"
|
2015-07-07 18:04:07 +00:00
|
|
|
rm -f series.new
|
2015-10-21 19:24:28 +00:00
|
|
|
extra_args="--fuzz=0"
|
2015-07-07 18:04:07 +00:00
|
|
|
count=0
|
2018-06-05 02:30:20 +00:00
|
|
|
# Transform patches into series file.
|
|
|
|
grep '^Patch.*:' glibc.spec | sed -e 's,Patch.*: ,,g' > series.new
|
|
|
|
count=`wc -l series.new | sed -e 's, .*$,,g'`
|
2015-07-07 18:04:07 +00:00
|
|
|
echo "Processed $count patches."
|
|
|
|
mv series.new series
|
2016-04-30 03:11:30 +00:00
|
|
|
echo "Generated quilt ./series file. Please do not commit."
|
2015-07-07 18:04:07 +00:00
|
|
|
exit 0
|