From d7f4f94a48693942cec2d007d3dd8c38d16a772f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sun, 9 Oct 2016 14:29:20 +0200 Subject: RPM packaging: update build scripts --- redhat/build/rpmdist.sh | 8 ++++++-- redhat/buildenv.sh | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/redhat/build/rpmdist.sh b/redhat/build/rpmdist.sh index 81f077479..ec4735d30 100755 --- a/redhat/build/rpmdist.sh +++ b/redhat/build/rpmdist.sh @@ -7,7 +7,7 @@ DIST="" if [ -r /etc/redhat-release ]; then read a b c d e f g < /etc/redhat-release -elif [ -r /etc/SuSE-release ]; then +elif [ -r /etc/SuSE-release ] || grep -qw "ID=opensuse" "/etc/os-release"; then a="opensuse" fi @@ -39,7 +39,11 @@ case $a in Fedora*) FEDORA="${c}"; DIST=".fc${FEDORA}";; # Opensuse opensuse) - DIST=".oss$((read l; read a b c; echo ${c//./})