OpenPKG CVS Repository
  http://www.openpkg.org/cvsweb/cvsweb.cgi
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   26-Aug-2002 20:58:05
  Branch: HEAD                             Handle: 2002082619580400

  Modified files:
    openpkg-src/openpkg     aux.prereq.sh

  Log:
    Take over Michael pre-work for more correct platform support determination.
    Additionally we now support Solaris 9, Debian 3.0 and RedHat 7.2.

  Summary:
    Revision    Changes     Path
    1.2         +30 -27     openpkg-src/openpkg/aux.prereq.sh
  ____________________________________________________________________________

  Index: openpkg-src/openpkg/aux.prereq.sh
  ============================================================
  $ cvs diff -u -r1.1 -r1.2 aux.prereq.sh
  --- openpkg-src/openpkg/aux.prereq.sh 5 Feb 2002 20:23:08 -0000       1.1
  +++ openpkg-src/openpkg/aux.prereq.sh 26 Aug 2002 18:58:04 -0000      1.2
  @@ -37,59 +37,62 @@
   support=no
   case $platform in
       *-solaris* )
  -       support=maybe
          case $platform in
  -           *-solaris2.[678] )
  +           *-solaris2.[67] )
  +               support=maybe
  +               ;;
  +           *-solaris2.[89] )
                  support=yes
                  ;;
          esac
          ;;
       *-linux* ) 
  -       support=maybe
  -       if [ -f /etc/debian_version ]; then
  +       if [ -f /etc/redhat-release ]; then
  +           redhat=`cat /etc/redhat-release | sed -e 's;^.*\([0-9]\.[0-9]*\).*$;\1;'`
  +           case "$redhat" in
  +               7.2    )
  +                   support=yes
  +                   ;;
  +               7.[13] ) 
  +                   support=maybe 
  +                   ;;
  +           esac
  +       elif [ -f /etc/debian_version ]; then
              debian=`cat /etc/debian_version`
  -           if [ ".$debian" = ".2.2" ]; then
  -               support=yes
  -           fi
  +           case "$debian" in
  +               2.2|3.0 ) 
  +                   support=yes
  +                   ;;
  +           esac
          fi
          ;;
       *-freebsd* )
  -       support=maybe
          case $platform in
  -           *-freebsd4.[12345] )
  +           *-freebsd4.[56] )
                  support=yes
                  ;;
  +           *-freebsd4.[01234789] )
  +               support=maybe
  +               ;;
  +           *-freebsd5.0 )
  +               support=maybe
  +               ;;
          esac
          ;;
       *-netbsd* )
          support=maybe
  -       case $platform in
  -           *-netbsd1.5* )
  -               support=yes
  -               ;;
  -       esac
          ;;
       *-osf* )
          support=maybe
  -       case $platform in
  -           *-osf5.[01] )
  -               support=yes
  -               ;;
  -       esac
          ;;
       *-hpux* )
          support=maybe
  -       case $platform in
  -           *-hpux10.20 )
  -               support=yes
  -               ;;
  -       esac
          ;;
   esac
   case $support in
  -    yes   ) support="Congratulations: fully supported" ;;
  -    maybe ) support="Good luck: supported but wrong version!" ;;
  -    no    ) support="Sorry: entirely unsupported!" ;;
  +    yes   ) support="Congratulations: officially supported" ;;
  +    maybe ) support="Good luck: unofficially supported" ;;
  +    no    ) support="Sorry: not supported" ;;
   esac
   echo "++ platform: $platform ($support)"
   case $support in
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to