summaryrefslogtreecommitdiffstats
path: root/redhat/rpmdist.sh
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2014-01-24 20:46:50 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2014-01-24 20:46:50 +0100
commit43429e67cfc03fdf5065e90c197753ec5f15aa19 (patch)
tree3f85e6c48280c03682aa2aa92fca68fd9aa60634 /redhat/rpmdist.sh
parentdf55195d132cbe6af516c6f1883315f26abd7f4a (diff)
downloadtde-packaging-43429e67cfc03fdf5065e90c197753ec5f15aa19.tar.gz
tde-packaging-43429e67cfc03fdf5065e90c197753ec5f15aa19.zip
RPM Packaging: update build scripts
Diffstat (limited to 'redhat/rpmdist.sh')
-rwxr-xr-xredhat/rpmdist.sh52
1 files changed, 0 insertions, 52 deletions
diff --git a/redhat/rpmdist.sh b/redhat/rpmdist.sh
deleted file mode 100755
index 047fbfaa6..000000000
--- a/redhat/rpmdist.sh
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/bash
-
-FEDORA=0
-RHEL=0
-MGA=0
-DIST=""
-
-if [ -r /etc/redhat-release ]; then
- read a b c d e < /etc/redhat-release
-elif [ -r /etc/SuSE-release ]; then
- a="opensuse"
-fi
-
-case $a in
- # Mageia release 1 (Official) for x86_64
- Mageia*)
- DIST=".mga${c}"
-# MDKVERSION="201002"
- ;;
- # Mandriva Linux release 2011.0 (Official) for x86_64
- Mandriva*)
- DIST=".mdv${d}"
- MDKVERSION="201100"
- ;;
- # CentOS release 5.7 (Final)
- # CentOS Linux release 6.0 (Final)
- CentOS*)
- if [ $c = "release" ]; then
- RHEL="${d%%.*}"; DIST=".el${RHEL}"
- else
- RHEL="${c%%.*}"; DIST=".el${RHEL}"
- fi
- ;;
- # Fedora release 15 (Lovelock)
- Fedora*) FEDORA="${c}"; DIST=".fc${FEDORA}";;
- # Opensuse
- opensuse)
- DIST=".oss$((read l; read a b c; echo ${c//./}) </etc/SuSE-release)"
- ;;
- # PCLinuxOS
- PCLinuxOS) PCLINUXOS="${c}"; DIST=".pclos${c}";;
-
- *) echo "distrib non reconnue !! $a";;
-esac
-
-case "$1" in
- "--dist") echo $DIST;;
- "--rhel") echo $RHEL;;
- "--fedora") echo $FEDORA;;
- "--mdkversion") echo $MDKVERSION;;
- "--pclinuxos") echo $PCLINUXOS;;
-esac