From: Philip Whineray Date: Mon, 20 Mar 2017 21:50:25 +0000 (+0000) Subject: Update checks to work on OS X X-Git-Tag: ab-debian_0.20170323.01-0ab1~1^2~5 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a959e83236c365f9c23f471a8c9f5f5066237e4b;p=netdata.git Update checks to work on OS X Split GNU-style -e "{...}" command into multiple blocks suitable for all versions. --- diff --git a/packaging/packaging.functions b/packaging/packaging.functions index d74fbfea..c18c8fe1 100644 --- a/packaging/packaging.functions +++ b/packaging/packaging.functions @@ -128,7 +128,7 @@ get_configure_ac_rpmrel() { get_spec_version() { get_staged_file -o "$1".spec.in test -f $MYTMP/files/"$1".spec.in || return 0 # Spec file is optional - sed -n -e '1,/^%changelog/d' -e '/^*/{s/.*- \([0-9].*\)/\1/p;q}' "$1".spec.in + sed -n -e '1,/^%changelog/d' -e '/^*/{' -e 's/.*- \([0-9].*\)/\1/p' -e q -e '}' "$1".spec.in } splitver() {