void-packages/srcpkgs/glibc/files/glibc-patches

6 lines
320 B
Plaintext
Raw Normal View History

#!/bin/sh
# glibc-patches VERSION - fetch glibc upstream patches
version=${1?no version given}
curl -sL "https://github.com/bminor/glibc/compare/glibc-${version}...release/${version}/master.patch" | sed '/^Subject/s,/[0-9]*\],],' | csplit -f glibc-upstream- -b '%02d.patch' - '/^From /' '{*}'
rm glibc-upstream-00.patch