home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Receipts / DeveloperLibs.pkg / DeveloperLibs.post_install < prev    next >
Encoding:
Text File  |  1997-01-04  |  1.3 KB  |  54 lines

  1. #!/bin/sh
  2.  
  3. if [ -x /bin/cc ]; then
  4.  
  5.     FXPCMP=/usr/bin/fixPrecomps
  6.  
  7.     if [ ! -x $FXPCMP ]; then
  8.         echo "fixPrecomps either does not exist or is not executable."
  9.         echo "Abandoning DeveloperLibs post install process."
  10.         exit 1
  11.     fi
  12.  
  13.     PLTFMFLAG=
  14.     TEST=/NextLibrary/Framew*/Found*.frame*/Headers/Foundation.p
  15.  
  16.     m68k=`lipo -info $TEST 2>/dev/null || true | grep m68k`
  17.     i386=`lipo -info $TEST 2>/dev/null || true | grep i386`
  18.     spar=`lipo -info $TEST 2>/dev/null || true | grep sparc`
  19.  
  20.     if [ ! -z "$m68k" ]
  21.     then PLTFMFLAG="-arch m68k ${PLTFMFLAG}"
  22.     fi
  23.  
  24.     if [ ! -z "$i386" ]
  25.     then PLTFMFLAG="-arch i386 ${PLTFMFLAG}"
  26.     fi
  27.  
  28.     if [ ! -z "$spar" ]
  29.     then PLTFMFLAG="-arch sparc ${PLTFMFLAG}"
  30.     fi
  31.  
  32.     if [ ! -z "$PLTFMFLAG" ]; then
  33.         $FXPCMP -precompFlags "${PLTFMFLAG}"
  34.         echo "Installing FAT on ${PLTFMFLAG}"
  35.     else
  36.         $FXPCMP
  37.         echo "Installing THIN on native platform"
  38.     fi
  39.  
  40. ################################################
  41. #  The above replaces this commented out script
  42. #   if ( -x /usr/bin/fixPrecomps ) then
  43. #      /usr/bin/fixPrecomps -precompFlags -arch m68k -arch i386  -arch sparc
  44. #   endif
  45. ################################################
  46.  
  47. else
  48.     echo "Couldn't find /bin/cc.  /bin/cc (in the DeveloperTools package)"
  49.     echo "is required for building precompiled headers."
  50.     exit 1
  51. fi
  52.  
  53.  
  54.