summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWei Xie <wei.xie@citrix.com>2017-04-21 11:20:57 +0800
committerWei Xie <wei.xie@citrix.com>2017-04-21 11:20:57 +0800
commit2c3f28a4d157bbf2ed7e902ef6b49d50cef1a56f (patch)
tree7b4fb375af0eee8c3ff60359b7edccd34801ace4 /mk
parent73775d90c74140b4c5a4eae8c59eabf296486efc (diff)
downloadvyos-xe-guest-utilities-2c3f28a4d157bbf2ed7e902ef6b49d50cef1a56f.tar.gz
vyos-xe-guest-utilities-2c3f28a4d157bbf2ed7e902ef6b49d50cef1a56f.zip
CA-250696: DDK build number is optional.
Signed-off-by: Wei Xie <wei.xie@citrix.com>
Diffstat (limited to 'mk')
-rwxr-xr-xmk/xe-linux-distribution4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/xe-linux-distribution b/mk/xe-linux-distribution
index 76fa531..81f8fbf 100755
--- a/mk/xe-linux-distribution
+++ b/mk/xe-linux-distribution
@@ -135,8 +135,10 @@ identify_redhat()
return 1
fi
+ eval $(sed -nr \
+ 's/^(.*) DDK release ([^-]*)(-(.*))? (.*)$/distro=xe-ddk;major=\2;minor=\4/gp;' \
+ "${redhat_release}")
eval $(sed -n \
- -e 's/^\(.*\) DDK release \(.*\)-\(.*\) (.*)$/distro=xe-ddk;major=\2;minor=\3/gp;' \
-e 's/^\(.*\) SDK release \(.*\)-\(.*\) (.*)$/distro=xe-sdk;major=\2;minor=\3/gp;' \
-e 's/^Red Hat Enterprise Linux.* release \([0-9]*\) (.* Update \(.*\))$/distro=rhel;major=\1;minor=\2/gp;'\
-e 's/^Red Hat Enterprise Linux.* release \([0-9]*\) (.*)$/distro=rhel;major=\1/gp;' \