Sophie

Sophie

distrib > Mandriva > cooker > x86_64 > by-pkgid > 9488514cad2bc9bfe7e06a895874abb5 > files > 20

Glide_V3-DRI-2002.04.10-2mdv2009.0.src.rpm

Status: applied

diff -ruN -x Makefile.in -x configure build-tree.orig/swlibs/include/make/ostype swlibs/include/make/ostype
--- build-tree.orig/swlibs/include/make/ostype	2000-06-15 02:11:40.000000000 +0200
+++ swlibs/include/make/ostype	2003-05-18 08:22:42.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/csh -f
+#!/bin/bash
 #
 # $Log: ostype,v $
 # Revision 1.2  2000/06/15 00:11:40  joseph
@@ -20,33 +20,36 @@
 
 # if '-all' flag, return all supported architecture types
 
-if ( $#argv >= 1 ) then
-        if ( $1 == "-all" ) then
+if [ $# -ge 1 ]
+then
+        if [ $1 = "-all" ]
+        then
                 echo "hpux sunos solaris linux"
-                exit
-        endif
-endif
+                exit 0
+        fi
+fi
 
 # determine and return machine architecture type
 
-set a = `/bin/uname -s`
-switch ($a)
-case "HP-UX":
+a=$(/bin/uname -s)
+case $a in
+  "HP-UX")
     echo "hpux"
-    exit
-case "SunOS":
-    set b = `/bin/uname -r | /usr/bin/cut -c1`
-    if ($b > 4) then
+    ;;
+  "SunOS")
+    b=$(/bin/uname -r | /usr/bin/cut -c1)
+    if [ $b -gt 4 ]
+    then
         echo "solaris"
-        exit
     else
         echo "sunos"
-        exit
-    endif
-case "Linux":
+    fi
+    ;;
+  "Linux")
     echo "Linux"
-	exit
-default:
+    ;;
+  *)
     echo "unknown"
-	exit
-endsw
+    ;;
+esac
+