Whamcloud - gitweb
TT-177 build: add .spec file for SLES11 packaging
[tools/e2fsprogs.git] / contrib / build-rpm
index 771b43a..df032bb 100644 (file)
@@ -43,6 +43,9 @@ if [ -z "$DISTRO" ]; then
     if grep "Fedora " /etc/issue; then
         DISTRO="Fedora"
     fi
+    if grep "SUSE Linux Enterprise Server " /etc/issue; then
+        DISTRO="SUSE LINUX"
+    fi
 fi
 if [ -z "$DISTRO" ]; then
     echo "Could not determine the distribution.  Please install the lsb_release binary"
@@ -54,6 +57,9 @@ if [ -z "$RELEASE" ]; then
         Fedora)
             RELEASE=$(grep Fedora /etc/issue | sed -e 's/Fedora release //' -e 's/ .*//')
         ;;
+        SUSE\ LINUX)
+            RELEASE=$(grep SUSE /etc/issue | sed -e 's/SUSE Linux Enterprise Server //' -e 's/ .*//')
+        ;;
     esac
 fi
 if [ -z "$RELEASE" ]; then