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

6 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