OSSP CVS Repository

ossp - Check-in [3636]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3636
Date: 2003-Sep-29 14:53:15 (local)
2003-Sep-29 12:53:15 (UTC)
User:rse
Branch:
Comment: add blind IBM AIX support; add platforms to manual page; cleanup and fix system classes
Tickets:
Inspections:
Files:
ossp-pkg/platform/platform.pod      1.3 -> 1.4     10 inserted, 0 deleted
ossp-pkg/platform/platform.sh      1.11 -> 1.12     30 inserted, 11 deleted

ossp-pkg/platform/platform.pod 1.3 -> 1.4

--- platform.pod 2003/09/08 19:03:03     1.3
+++ platform.pod 2003/09/29 12:53:15     1.4
@@ -193,6 +193,16 @@
 
 =back
 
+=head1 SUPPORT
+
+B<OSSP platform> currently knows the following particular Unix platforms
+in detail: FreeBSD, NetBSD, OpenBSD, Linux, Sun Solaris, SCO UnixWare,
+QNX Neutrino, SGI IRIX, HP HP-UX, HP Tru64, IBM AIX.
+
+All other Unix platforms are recognized through generic uname(1)
+information and so usually can be identified sufficiently, although the
+identification might be not as precise as possible.
+
 =head1 SEE ALSO
 
 http://www.ossp.org/pkg/tool/platform/.


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