From 2dae1cf81619606b133888675d5ebf1b688d9d7c Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sun, 26 Feb 2017 20:42:32 -0800 Subject: Require GNU sed After much struggling with macos (BSD) sed and even getting everything work in crosstool-ng itself, I had to abandon that because some components rely on GNU syntax. Specifically, GNU libc uses '/.../{H;g}' (note absense of the separator after 'g'). So, revert the -r/-E detection and check for sed's being of GNU origin. MacOS people, sorry, but you'd have to install GNU sed. Signed-off-by: Alexey Neyman --- scripts/patch-renumber.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/patch-renumber.sh') diff --git a/scripts/patch-renumber.sh b/scripts/patch-renumber.sh index c56473b4..c9650ce9 100755 --- a/scripts/patch-renumber.sh +++ b/scripts/patch-renumber.sh @@ -59,7 +59,7 @@ for p in "${src}/"*.patch*; do newname="$(printf "%03d-%s" \ "${cpt}" \ "$( basename "${p}" \ - |"${sed}" -r -e 's/^[[:digit:]]+[-_]//' \ + |${sed} -r -e 's/^[[:digit:]]+[-_]//' \ -e "${sed_re}" \ )" \ )" -- cgit v1.2.3