Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / admin / BuildTools / setup / hpversioncheck
1 #! /bin/ksh
2 # This script checks to see if the system release is OK and the compiler
3 # is OK on hpux.
4
5 RELEASE=`uname -r|fgrep '9.05' 2>/dev/null`
6
7 if [ ! "$RELEASE" ];then
8         echo "  System Release Incorrect. uname -r should be 9.05"
9         echo "  system is instead `uname -r`"
10         echo ""
11 fi
12         
13 COMPILER=`what /bin/c89 |fgrep '9.68' 2>/dev/null`
14
15 if [ ! "$COMPILER" ];then
16         echo "  Compiler version is Incorrect. It should be 9.68"
17         echo "  Instead it is:"
18         what /bin/c89
19         echo ""
20 fi
21
22