Carlos O'Donell 33fde8
#!/bin/bash
Carlos O'Donell 33fde8
# Autogeneries the quilt `series` from the patch order in the spec file.
Carlos O'Donell 33fde8
# We don't use `quilt setup` because it makes a huge mess and doesn't work.
Carlos O'Donell 0cffc9
component="glibc"
Carlos O'Donell 33fde8
rm -f series.new
Carlos O'Donell e61b8f
extra_args="--fuzz=0"
Carlos O'Donell 33fde8
count=0
e4a1cf
# Transform patches into series file.
e4a1cf
grep '^Patch.*:' glibc.spec | sed -e 's,Patch.*: ,,g' > series.new
e4a1cf
count=`wc -l series.new | sed -e 's, .*$,,g'`
Carlos O'Donell 33fde8
echo "Processed $count patches."
Carlos O'Donell 33fde8
mv series.new series
Carlos O'Donell 790a04
echo "Generated quilt ./series file. Please do not commit."
Carlos O'Donell 33fde8
exit 0