Index: ossp-pkg/platform/platform.pod RCS File: /v/ossp/cvs/ossp-pkg/platform/platform.pod,v rcsdiff -q -kk '-r1.3' '-r1.4' -u '/v/ossp/cvs/ossp-pkg/platform/platform.pod,v' 2>/dev/null --- 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 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/. Index: ossp-pkg/platform/platform.sh RCS File: /v/ossp/cvs/ossp-pkg/platform/platform.sh,v rcsdiff -q -kk '-r1.11' '-r1.12' -u '/v/ossp/cvs/ossp-pkg/platform/platform.sh,v' 2>/dev/null --- 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