hpversioncheck 473 B

12345678910111213141516171819202122
  1. #! /bin/ksh
  2. # This script checks to see if the system release is OK and the compiler
  3. # is OK on hpux.
  4. RELEASE=`uname -r|fgrep '9.05' 2>/dev/null`
  5. if [ ! "$RELEASE" ];then
  6. echo " System Release Incorrect. uname -r should be 9.05"
  7. echo " system is instead `uname -r`"
  8. echo ""
  9. fi
  10. COMPILER=`what /bin/c89 |fgrep '9.68' 2>/dev/null`
  11. if [ ! "$COMPILER" ];then
  12. echo " Compiler version is Incorrect. It should be 9.68"
  13. echo " Instead it is:"
  14. what /bin/c89
  15. echo ""
  16. fi