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

5 lines
320 B
Bash
Executable file

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