summaryrefslogtreecommitdiffstats
path: root/packaging/packaging.functions
diff options
context:
space:
mode:
authorPhilip Whineray <phil@firehol.org>2017-03-20 21:50:25 +0000
committerPhilip Whineray <phil@firehol.org>2017-03-20 21:50:25 +0000
commita959e83236c365f9c23f471a8c9f5f5066237e4b (patch)
tree14d7ba6f6a1fb43218d39a4046cd1dbe58b82d0c /packaging/packaging.functions
parenteddb5f458b6ad80a4420a95564508908ee58ff63 (diff)
Update checks to work on OS X
Split GNU-style -e "{...}" command into multiple blocks suitable for all versions.
Diffstat (limited to 'packaging/packaging.functions')
-rw-r--r--packaging/packaging.functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/packaging.functions b/packaging/packaging.functions
index d74fbfeac2..c18c8fe184 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() {