From 56e635e1c40bf0aed327c56e54b105607bbe17c7 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 8 May 2018 08:26:19 +0200 Subject: lib/common-functions: mangle_pkgbuild: fix sed to properly handle gcc's PKGBUILD --- lib/common-functions | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/common-functions b/lib/common-functions index ad0f206..c0121e6 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -577,8 +577,10 @@ mangle_pkgbuild() { :a s,^\s*\(\S[^=]*\)=(\([^()]*\(#[^\n]*\n\)\?\)*),\0\n\1=("${\1[\@]/lib32-/}")\n, t - $!N - ba + $! { + N + ba + } } ' "${PKGBUILD}" } -- cgit v1.2.3-70-g09d2