summaryrefslogtreecommitdiffstats
path: root/redhat/genrpm.sh
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-11-24 09:58:05 +0100
committerFrancois Andriot <francois.andriot@free.fr>2012-11-24 09:58:05 +0100
commit32fb770ae4ed0851491a59df5e23e27fb8afdadf (patch)
treec36a3226a9dd6588d754bd3b0dccacf89e0589b3 /redhat/genrpm.sh
parente7f51ead5a067b6e3ac4fc64edc734a82711f2d2 (diff)
downloadtde-packaging-32fb770ae4ed0851491a59df5e23e27fb8afdadf.tar.gz
tde-packaging-32fb770ae4ed0851491a59df5e23e27fb8afdadf.zip
RPM: add PCLinuxOS support
Diffstat (limited to 'redhat/genrpm.sh')
-rwxr-xr-xredhat/genrpm.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh
index 10f5dfbb0..13ddee519 100755
--- a/redhat/genrpm.sh
+++ b/redhat/genrpm.sh
@@ -32,7 +32,8 @@ EOF
RHEL="$( rpm -E "%{rhel}" )"
FEDORA="$( rpm -E "%{fedora}" )"
SUSE="$( rpm -E "%{suse_version}" )"
-if [ "${RHEL}" = "%{rhel}" ] && [ "${FEDORA}" = "%{fedora}" ] && [ "${SUSE}" = "%{suse_version}" ]; then
+PCLINUXOS="$( rpm -E "%{pclinuxos}" )"
+if [ "${RHEL}" = "%{rhel}" ] && [ "${FEDORA}" = "%{fedora}" ] && [ "${SUSE}" = "%{suse_version}" ] && [ "${PCLINUXOS}" = "%{pclinuxos}" ] ; then
cat <<EOF
Error: RPM macro %rhel or %fedora must be set to the distribution version to build !
E.g: