]> arthur.barton.de Git - netdata.git/commitdiff
Update checks to work on OS X
authorPhilip Whineray <phil@firehol.org>
Mon, 20 Mar 2017 21:50:25 +0000 (21:50 +0000)
committerPhilip Whineray <phil@firehol.org>
Mon, 20 Mar 2017 21:50:25 +0000 (21:50 +0000)
Split GNU-style -e "{...}" command into multiple blocks suitable for
all versions.

packaging/packaging.functions

index d74fbfeac2597ae3908655c1e36990157028c1fb..c18c8fe1842c72ba7bdfef9ad230305e00c48c37 100644 (file)
@@ -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() {