Commit 989c6f7c authored by David Johnson's avatar David Johnson

Install fedora stuff on CentOS for now.

parent a88d516e
......@@ -72,6 +72,9 @@ endif
ifeq ($(findstring fedora,$(MDSUBDIR)),fedora)
MDSUBDIR = fedora
endif
ifeq ($(findstring centos,$(MDSUBDIR)),centos)
MDSUBDIR = fedora
endif
ifeq ($(MDSUBDIR),stargate1)
MDSUBDIR = linux-sg
endif
......
......@@ -30,14 +30,20 @@ Linux)
rel=`grep DISTRIB_RELEASE /etc/lsb-release | awk -F = '{ print $2; }'`
fi
if [ -z "$dist" -a -r /etc/redhat-release ]; then
rel=`grep 'Red Hat' /etc/redhat-release | sed -e 's/Red Hat Linux release \([0-9]\(\.[0-9]\)\?\).*/\1/'`
if [ -n "$rel" ]; then
trel=`grep 'Red Hat' /etc/redhat-release | sed -e 's/Red Hat Linux release \([0-9]\(\.[0-9]\)\?\).*/\1/'`
if [ -n "$trel" ]; then
dist="Redhat"
else
rel=`grep 'Fedora' /etc/redhat-release | sed -e 's/Fedora .*release \([0-9]\).*/\1/'`
if [ -n "$rel" ]; then
dist="Fedora"
fi
rel=$trel
fi
trel=`grep 'Fedora' /etc/redhat-release | sed -e 's/Fedora .*release \([0-9.]\+\).*/\1/'`
if [ -n "$trel" ]; then
dist="Fedora"
rel=$trel
fi
trel=`grep 'CentOS' /etc/redhat-release | sed -e 's/CentOS .*release \([0-9.]\+\).*/\1/'`
if [ -n "$trel" ]; then
dist="CentOS"
rel=$trel
fi
fi
# XXX hack check for stargate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment