From d9646e9502e55c530a1bb742611694c31305d117 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Thu, 5 May 2005 20:01:35 +0000 Subject: [PATCH] * config.guess.long: detect SuSE Enterprise Server and call it "sles" not "suse". --- ChangeLog | 5 +++++ config.guess.long | 15 +++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index c106e25..2783867 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-05 Erez Zadok + + * config.guess.long: detect SuSE Enterprise Server and call it + "sles" not "suse". + 2005-05-02 Erez Zadok * doc/am-utils.texi (amd): document proper use of diff --git a/config.guess.long b/config.guess.long index 4afc614..7889e48 100755 --- a/config.guess.long +++ b/config.guess.long @@ -6,7 +6,7 @@ #set -x # find a single word that prints the version number of the release -getdistrover () { +getver () { l=`head $1` set $l for i in $* @@ -26,12 +26,11 @@ if test "x$GCONFIG" = "x" ; then export PATH GCONFIG=`config.guess || echo unknown-config` fi - case "${GCONFIG}" in *linux* ) GCONFIG=`echo ${GCONFIG} | sed -e 's/i.86/i386/' -e 's/linux-gnu/linux/'` if test -f /etc/redhat-release ; then - long=`getdistrover /etc/redhat-release` + long=`getver /etc/redhat-release` if grep -q 'Red Hat Enterprise Linux' /etc/redhat-release; then echo ${GCONFIG}-rhel${long} elif grep -q 'Fedora Core' /etc/redhat-release; then @@ -41,11 +40,15 @@ case "${GCONFIG}" in fi exit 0 elif test -f /etc/SuSE-release ; then - long=`getdistrover /etc/SuSE-release` - echo ${GCONFIG}-suse${long} + long=`getver /etc/SuSE-release` + if grep -q 'Enterprise Server' /etc/SuSE-release; then + echo ${GCONFIG}-sles${long} + else + echo ${GCONFIG}-suse${long} + fi exit 0 elif test -f /etc/debian_version ; then - long=`getdistrover /etc/debian_version` + long=`getver /etc/debian_version` echo ${GCONFIG}-deb${long} exit 0 else -- 2.43.0