diff options
author | Philip Whineray <phil@firehol.org> | 2017-03-20 21:50:25 +0000 |
---|---|---|
committer | Philip Whineray <phil@firehol.org> | 2017-03-20 21:50:25 +0000 |
commit | a959e83236c365f9c23f471a8c9f5f5066237e4b (patch) | |
tree | 14d7ba6f6a1fb43218d39a4046cd1dbe58b82d0c /packaging | |
parent | eddb5f458b6ad80a4420a95564508908ee58ff63 (diff) |
Update checks to work on OS X
Split GNU-style -e "{...}" command into multiple blocks suitable for
all versions.
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/packaging.functions | 2 |
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() { |