commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/common/scripts gnue-diag.sh


From: Jason Cater
Subject: gnue/common/scripts gnue-diag.sh
Date: Fri, 11 Jan 2002 14:20:32 -0500

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    02/01/11 14:20:32

Modified files:
        common/scripts : gnue-diag.sh 

Log message:
        minor change to command line arguments

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/scripts/gnue-diag.sh.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: gnue/common/scripts/gnue-diag.sh
diff -c gnue/common/scripts/gnue-diag.sh:1.1 
gnue/common/scripts/gnue-diag.sh:1.2
*** gnue/common/scripts/gnue-diag.sh:1.1        Fri Jan 11 13:37:56 2002
--- gnue/common/scripts/gnue-diag.sh    Fri Jan 11 14:20:32 2002
***************
*** 15,20 ****
--- 15,25 ----
  #      ./gnue-diag.sh
  #
  #
+ #  To show information only about the installed  pythons, run:
+ #
+ #      ./gnue-diag.sh pycheck
+ #
+ #
  #  To show information only about the system (not Python
  #  information), run:
  #
***************
*** 33,52 ****
  #
  
  
- echo
  echo "GNU Enterprise"
  echo "POSIX Diagnostics Script"
  echo
  
  if [ "$1" == "system" ]
  then
    checkSystem="Y"
-   PYTHONBINS=""
  
  elif [ "$1" == "config" ]
  then
    checkConfig="Y"
!   PYTHONBINS=""
  
  elif [ "$1z" != "z" ]
  then
--- 38,65 ----
  #
  
  
  echo "GNU Enterprise"
  echo "POSIX Diagnostics Script"
  echo
  
+ checkConfig="N"
+ checkSystem="N"
+ checkPython="N"
+ 
+ grabAllPythons="N"
+ 
  if [ "$1" == "system" ]
  then
    checkSystem="Y"
  
  elif [ "$1" == "config" ]
  then
    checkConfig="Y"
! 
! elif [ "$1" == "pycheck" ]
! then
!   checkPython="Y"
!   grabAllPythons="Y"
  
  elif [ "$1z" != "z" ]
  then
***************
*** 56,68 ****
--- 69,89 ----
      echo "Cannot run $1"
      exit
    fi
+   checkPython="Y"
+ 
  else
  
    # Find all python binaries in the path
  
    checkConfig="Y"
    checkSystem="Y"
+   checkPython="Y"
+   grabAllPythons="Y"
+ 
+ fi
  
+ if [ "$grabAllPythons" == "Y" ]
+ then
    for f in `echo $PATH|awk '{gsub(":"," "); print $0}'`
    do
  
***************
*** 84,95 ****
    done
  fi
  
! for python in $PYTHONBINS
! do
!   echo "--------------------------------------------------------------------"
!   echo "Python results for '$python'"
!   echo
!   echo '
  
  # Perform python checking
  import sys, string
--- 105,120 ----
    done
  fi
  
! 
! if [ "$checkPython" == "Y" ]
! then
! 
!   for python in $PYTHONBINS
!   do
!     echo 
"--------------------------------------------------------------------"
!     echo "Python results for '$python'"
!     echo
!     echo '
  
  # Perform python checking
  import sys, string
***************
*** 120,149 ****
  
  sys.exit()
  
!   ' | $python
  
!   echo
  
!   pybase=`
!   echo "
  import sys
  print '%s/lib/python%s' % (sys.prefix, sys.version[:3])
  sys.exit()
!   "|$python`
  
!   # Check any packages that might segfault them here...
!   echo "Checking $pybase/site-packages:"
!   for tst in wxPython pygresql psycopg pyPgSQL MySQLdb
!   do
!     if [ -e $pybase/site-packages/$tst* ]
!     then
!       echo "  $pybase/site-packages/$tst:  found"
!     else
!       echo "  $pybase/site-packages/$tst:  *NOT found*"
!     fi
!   done
  
! done
  
  
  if [ "$checkSystem" == "Y" ]
--- 145,175 ----
  
  sys.exit()
  
!     ' | $python
  
!     echo
  
!     pybase=`
!     echo "
  import sys
  print '%s/lib/python%s' % (sys.prefix, sys.version[:3])
  sys.exit()
!     "|$python`
  
!     # Check any packages that might segfault them here...
!     echo "Checking $pybase/site-packages:"
!     for tst in wxPython pygresql psycopg pyPgSQL MySQLdb
!     do
!       if [ -e $pybase/site-packages/$tst* ]
!       then
!         echo "  $pybase/site-packages/$tst:  found"
!       else
!         echo "  $pybase/site-packages/$tst:  *NOT found*"
!       fi
!     done
  
!   done
! fi
  
  
  if [ "$checkSystem" == "Y" ]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]