[prev in list] [next in list] [prev in thread] [next in thread]
List: openpkg-cvs
Subject: [CVS] OpenPKG: openpkg-src/openpkg/ HISTORY platform
From: "Ralf S. Engelschall" <rse () openpkg ! org>
Date: 2003-10-31 21:05:17
[Download RAW message or body]
OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: rse@openpkg.org
Module: openpkg-src Date: 31-Oct-2003 22:05:17
Branch: HEAD Handle: 2003103121051700
Modified files:
openpkg-src/openpkg HISTORY platform
Log:
upgrade to latest OSSP platform script version
Summary:
Revision Changes Path
1.86 +1 -0 openpkg-src/openpkg/HISTORY
1.12 +27 -9 openpkg-src/openpkg/platform
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/openpkg/HISTORY
============================================================================
$ cvs diff -u -r1.85 -r1.86 HISTORY
--- openpkg-src/openpkg/HISTORY 31 Oct 2003 16:29:37 -0000 1.85
+++ openpkg-src/openpkg/HISTORY 31 Oct 2003 21:05:17 -0000 1.86
@@ -2,6 +2,7 @@
2003
====
+20031031 upgrade to latest OSSP platform script version
20031031 work-off aux.wrap{src,bin}.sh scripts and internal documentation in README
20031029 switch from uncompressed binary tarball to compressed tarball in tarball encapsulation
20031029 switch from uuencoded to raw tarballs for source/binary .sh files (30% space reduction)
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/openpkg/platform
============================================================================
$ cvs diff -u -r1.11 -r1.12 platform
--- openpkg-src/openpkg/platform 28 Oct 2003 09:37:34 -0000 1.11
+++ openpkg-src/openpkg/platform 31 Oct 2003 21:05:17 -0000 1.12
@@ -1,5 +1,5 @@
##
-## OSSP platform - Platform Identification
+## OSSP platform - Unix Platform Identification
## Copyright (c) 2003 The OSSP Project <http://www.ossp.org/>
## Copyright (c) 2003 Ralf S. Engelschall <rse@engelschall.com>
##
@@ -29,7 +29,7 @@
prog_cmd="platform"
prog_name="OSSP platform"
prog_vers="0.1.0"
-prog_date="06-Sep-2003"
+prog_date="30-Oct-2003"
## _________________________________________________________________________
##
@@ -384,7 +384,10 @@
# determine architecture
AT="${UNAME_MACHINE}"
case "${AT}" in
- x86_64 ) AT='AMD64' ;;
+ ia64 ) AT="IA64" ;;
+ x86_64 ) AT='AMD64' ;;
+ parisc ) AT="HPPA32" ;;
+ parisc64 ) AT="HPPA64" ;;
esac
AP="${AT}"
case "${AP}" in
@@ -513,7 +516,7 @@
ST="[SGI ]IRIX ${v}"
v="${UNAME_RELEASE}"
SP="[SGI ]IRIX ${v}"
- SC="4.2BSD${opt_C}SVR3"
+ SC="4.2BSD/SVR3"
;;
# HP HP-UX
@@ -545,7 +548,7 @@
AC="${AP}"
# determine system
v=`echo "${UNAME_RELEASE}" | sed -e 's;^[^0-9]*;;'`
- ST="[HP ]HP-UX ${v}"
+ ST="[HP ]<HP>-<UX> ${v}"
SP="${ST}"
case "${v}" in
10.* ) SC="SVR4.2" ;;
@@ -573,12 +576,27 @@
# IBM AIX
*:AIX:* )
- AT="${UNAME_MACHINE}"
+ cpu_arch=rs6000
+ if [ -x /usr/sbin/lsdev -a -x /usr/sbin/lsattr ]; then
+ cpu_id=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
+ if [ ".`/usr/sbin/lsattr -El ${cpu_id} | grep -i powerpc`" != . ]; then
+ cpu_arch=powerpc
+ fi
+ fi
+ if [ -x /usr/bin/oslevel ]; then
+ os_level=`/usr/bin/oslevel`
+ else
+ os_level="`uname -r`.`uname -v`"
+ fi
+ os_level=`echo "${os_level}" |\
+ sed -e 's;^\([0-9][0-9]*\.[0-9][0-9]*\)\(\.[0-9][0-9]*\)\(.*\)$;<\1>\2[\3];' \
+ -e 's;^\([0-9][0-9]*\.[0-9][0-9]*\)\(.*\)$;<\1>\2;'`
+ AT="${cpu_arch}"
AP="${AT}"
AC="${AP}"
- ST="[IBM ]AIX ${UNAME_RELEASE}"
+ ST="[IBM ]AIX ${os_level}"
SP="${ST}"
- case "${UNAME_RELEASE}" in
+ case "${os_level}" in
[12]* ) SC="SVR2" ;;
* ) SC="SVR4" ;;
esac
@@ -597,7 +615,7 @@
esac
ST="[Apple ]${UNAME_SYSTEM} ${UNAME_RELEASE}"
SP="${ST}"
- SC="4.4BSD${opt_C}Mach3"
+ SC="4.4BSD/Mach3"
;;
# TODO ...ADD YOUR NEW PLATFORM CHECK HERE... TODO
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List openpkg-cvs@openpkg.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic