glibc: add helper script to fetch upstream patches.

Closes #3644.
This commit is contained in:
Leah Neukirchen 2017-06-04 00:02:33 +02:00
parent 6b6a6ff185
commit bf97870590
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
#!/bin/sh
# glibc-patches VERSION - fetch glibc upstream patches
version=${1?no version given}
curl -sL "http://repo.or.cz/glibc.git/patch/glibc-${version}..release/${version}/master" | sed '/^Subject/s,/[0-9]*\],],' | csplit -f glibc-upstream- -b '%02d.patch' - '/^From /' '{*}'
rm glibc-upstream-00.patch