From bf97870590c60a72a25b88f49641c7867674d441 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sun, 4 Jun 2017 00:02:33 +0200 Subject: [PATCH] glibc: add helper script to fetch upstream patches. Closes #3644. --- srcpkgs/glibc/files/glibc-patches | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 srcpkgs/glibc/files/glibc-patches diff --git a/srcpkgs/glibc/files/glibc-patches b/srcpkgs/glibc/files/glibc-patches new file mode 100755 index 00000000000..289e0848b7b --- /dev/null +++ b/srcpkgs/glibc/files/glibc-patches @@ -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