summaryrefslogtreecommitdiffstats
path: root/redhat/build/rpmdist.sh
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2018-06-02 14:24:39 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2018-06-19 20:11:02 +0200
commitce947350eb2ae4260a6476e302fb73ad244fe955 (patch)
treed4e90d6cc68b11d45d8c45d56134f0f0d7906d80 /redhat/build/rpmdist.sh
parent15e02021e25b2c9a00d7eabaf6b2ffe5238c78b3 (diff)
downloadtde-packaging-ce947350eb2ae4260a6476e302fb73ad244fe955.tar.gz
tde-packaging-ce947350eb2ae4260a6476e302fb73ad244fe955.zip
RPM: update build scripts
Diffstat (limited to 'redhat/build/rpmdist.sh')
-rwxr-xr-xredhat/build/rpmdist.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/redhat/build/rpmdist.sh b/redhat/build/rpmdist.sh
index 16d1468a4..f890bfb2e 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 ] || [ -r /etc/SUSE-brand ] || grep -qw "ID=opensuse" "/etc/os-release"; then
+elif [ -r /etc/SuSE-release ] || [ -r /etc/SUSE-brand ] || grep -q "opensuse" "/etc/os-release"; then
a="opensuse"
fi
@@ -43,6 +43,8 @@ case $a in
DIST=".oss$((read l; read a b c; echo ${c//./}) </etc/SuSE-release)"
elif [ -r "/etc/SUSE-brand" ]; then
DIST=".oss$((read a; read a b c; echo ${c//./}) </etc/SUSE-brand)"
+ elif grep -q "tumbleweed" "/etc/os-release"; then
+ DIST=".osstw"
else
DIST=".oss"
fi