Request 312 was acted upon.
_________________________________________________________________________

         URL: https://rt.openpkg.org/id/312
      Ticket: [OpenPKG #312]
     Subject: Fixes for mflags -O in rpmtool
  Requestors: [EMAIL PROTECTED]
       Queue: openpkg
       Owner: Nobody
      Status: new
 Transaction: Ticket created by [EMAIL PROTECTED]
        Time: Mon Jan 19 14:43:56 2004
_________________________________________________________________________

SunOS and Tru64 can be handled in one case branch:

          case $platform in
            *:SunOS:5.*:* | *:OSF1:*:* )
               if [ ".$isgmake" = .yes ]; then
                   n=`psrinfo | wc -l`
                   if [ ".$n" != . ]; then
                       if [ $n -gt 1 ]; then
                           n=`expr $n \* 2`
                           mflags="$mflags -j$n"
                       fi
                   fi
               fi
               ;;

Fix for HP-UX is:

            *:HP-UX:*:* )
               if [ ".$isgmake" = .yes ]; then
                       n=`ioscan -d processor -k -F | wc -l`
                       if [ ".$n" != . ]; then
                           if [ $n -gt 1 ]; then
                               n=`expr $n \* 2`
                               mflags="$mflags -j$n"
                           fi
                       fi
               fi
               ;;

/S
-- 
SÅawek Åak : UNIX Systems Administrator : PTC Sp. zoo

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to