void-packages/srcpkgs/glibc/files/glibc-patches
2017-06-04 16:36:37 +02:00

5 lines
307 B
Bash
Executable file

#!/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