OSSP CVS Repository

ossp - Difference in ossp-pkg/platform/platform.sh versions 1.11 and 1.12
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/platform/platform.sh 1.11 -> 1.12

--- platform.sh  2003/09/29 10:11:31     1.11
+++ platform.sh  2003/09/29 12:53:15     1.12
@@ -344,8 +344,8 @@
         esac
         ;;
 
-    #   OpenBSD
-    *:OpenBSD:* )
+    #   NetBSD
+    *:NetBSD:* )
         #   determine architecture
         AT="${UNAME_MACHINE}"
         AP="${AT}"
@@ -355,13 +355,16 @@
         AC="${AP}"
         #   determine system
         r=`echo "${UNAME_RELEASE}" | sed -e 's/\(-.*\)$/[\1]/'`
-        ST="OpenBSD ${r}"
+        ST="NetBSD ${r}"
         SP="${ST}"
-        SC="4.4BSD"
+        case "${r}" in
+            0.* ) SC="4.3BSD" ;;
+            *   ) SC="4.4BSD" ;;
+        esac
         ;;
 
-    #   NetBSD
-    *:NetBSD:* )
+    #   OpenBSD
+    *:OpenBSD:* )
         #   determine architecture
         AT="${UNAME_MACHINE}"
         AP="${AT}"
@@ -371,7 +374,7 @@
         AC="${AP}"
         #   determine system
         r=`echo "${UNAME_RELEASE}" | sed -e 's/\(-.*\)$/[\1]/'`
-        ST="NetBSD ${r}"
+        ST="OpenBSD ${r}"
         SP="${ST}"
         SC="4.4BSD"
         ;;
@@ -456,7 +459,7 @@
                -e 's;^5\.\([0-9][0-9]*\).*;\1;'`
         SP="[Sun ]Solaris $v"
         case "${UNAME_RELEASE}" in
-            4.* ) SC="4.2BSD" ;;
+            4.* ) SC="4.3BSD" ;;
             5.* ) SC="SVR4"   ;;
         esac
         ;;
@@ -507,7 +510,7 @@
         ST="[SGI ]IRIX ${v}"
         v="${UNAME_RELEASE}"
         SP="[SGI ]IRIX ${v}"
-        SC="BSD"
+        SC="4.2BSD${opt_C}SVR3"
         ;;
 
     #   HP HP-UX
@@ -541,7 +544,10 @@
         v=`echo "${UNAME_RELEASE}" | sed -e 's;^[^0-9]*;;'`
         ST="[HP ]HP-UX ${v}"
         SP="${ST}"
-        SC="BSD"
+        case "${v}" in
+            10.*   ) SC="SVR4.2" ;;
+            [7-9]* ) SC="SVR4"   ;;
+        esac
         ;;
 
     #   HP Tru64 (OSF1)
@@ -559,7 +565,20 @@
         v=`echo "${UNAME_RELEASE}" | sed -e 's;^[VTX];;'`
         ST="[HP ]Tru64 ${v}"
         SP="${ST}"
-        SC="BSD"
+        SC="OSF1"
+        ;;
+
+    #   IBM AIX
+    *:AIX:* )
+        AT="${UNAME_MACHINE}"
+        AP="${AT}"
+        AC="${AP}"
+        ST="[IBM ]AIX ${UNAME_RELEASE}"
+        SP="${ST}"
+        case "${UNAME_RELEASE}" in
+            [12]* ) SC="SVR2" ;;
+            *     ) SC="SVR4" ;;
+        esac
         ;;
 
     #   TODO ...ADD YOUR NEW PLATFORM CHECK HERE... TODO

CVSTrac 2.0.1