home *** CD-ROM | disk | FTP | other *** search
/ Pro Intralink 3.1 / Pro Intralink v3.1.iso / dsrc / templates / unix / u_head.inc < prev    next >
Encoding:
Text File  |  2001-11-27  |  1.6 KB  |  62 lines

  1. // 27-Mar-97 $$1  Pete  Created.
  2. // 10-Feb-98 $$2  JJE   Check if hp8k exists
  3. // 06-Mar-98 $$3  JJE   Modify the 8k check
  4. // 06-Apr-98 $$4  JJE   Check if sgi_mips4 exists
  5. // 27-Aug-98 $$5  JJE   Set pmt for java
  6. // 17-Nov-98 $$6  TWH   mv PRO_MACHINE_TYPE/MC settings
  7. // 04-Aug-00 $$7  TWH   Add hpux11_pa32 dir check
  8. // 01-Dec-00 $$8  TWH   sun4_solaris_64 fallback
  9. // 23-Jan-01 $$9  TWH   Sun4_solaris_64 changes
  10. // 16-May-01 $$10 TWH   hpux_pa64 changes/fallback
  11. // 25-May-01 $$11 JJE   Don't use ucb paths on sun
  12. // 19-Sep-01 $$12 TWH   Mc fallback must check $mc/obj
  13. #!/bin/csh -f
  14.  
  15. set rundir="$cwd"
  16. set fullscrname="$0"
  17. set fullscrname=`ls -l $fullscrname | awk '{print $NF}'`
  18. set scrname="$fullscrname:t"
  19. set fullscrpath=$fullscrname:h
  20. if ($fullscrpath == $fullscrname) then
  21.     set fullscrpath=$cwd
  22. else
  23.     cd $fullscrpath
  24.     set fullscrpath=$cwd
  25. endif
  26. cd $rundir
  27. set prodir="$fullscrpath:h"
  28. set mc=`$prodir/install/unix/getpmt`
  29. setenv PRODIR $prodir
  30.  
  31. if ( $mc == "hpux_pa64" ) then
  32.  if ( ! -d $prodir/hpux_pa64/obj ) then
  33.   set mc="hpux11_pa32"
  34.  endif
  35. endif
  36. if ( $mc == "hpux11_pa32" ) then
  37.  if ( ! -d $prodir/hpux11_pa32/obj ) then
  38.   set mc="hp8k"
  39.  endif
  40. endif
  41. if ( $mc == "hp8k" ) then
  42.  if ( ! -d $prodir/hp8k/obj ) then
  43.   if ( -d $prodir/hp700 ) set mc="hp700"
  44.  endif
  45. endif
  46. if ( $mc == "sgi_mips4" ) then
  47.  if ( ! -d $prodir/sgi_mips4/obj ) then
  48.   if ( -d $prodir/sgi_elf2 ) set mc="sgi_elf2"
  49.  endif
  50. endif
  51. if ( $mc == "sun4_solaris_64" )then
  52.  if ( ! -d $prodir/sun4_solaris_64/obj ) then
  53.   if ( -d $prodir/sun4_solaris ) set mc="sun4_solaris"
  54.  endif
  55. endif
  56.  
  57. setenv MC $mc
  58. setenv PRO_MACHINE_TYPE $mc
  59.  
  60. setenv PRO_DIRECTORY $prodir
  61.  
  62.