glibc/SOURCES/gen-quilt-series.sh

15 lines
498 B
Bash
Raw Normal View History

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.
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
# 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