home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- if [ -x /bin/cc ]; then
-
- FXPCMP=/usr/bin/fixPrecomps
-
- if [ ! -x $FXPCMP ]; then
- echo "fixPrecomps either does not exist or is not executable."
- echo "Abandoning DeveloperLibs post install process."
- exit 1
- fi
-
- PLTFMFLAG=
- TEST=/NextLibrary/Framew*/Found*.frame*/Headers/Foundation.p
-
- m68k=`lipo -info $TEST 2>/dev/null || true | grep m68k`
- i386=`lipo -info $TEST 2>/dev/null || true | grep i386`
- spar=`lipo -info $TEST 2>/dev/null || true | grep sparc`
-
- if [ ! -z "$m68k" ]
- then PLTFMFLAG="-arch m68k ${PLTFMFLAG}"
- fi
-
- if [ ! -z "$i386" ]
- then PLTFMFLAG="-arch i386 ${PLTFMFLAG}"
- fi
-
- if [ ! -z "$spar" ]
- then PLTFMFLAG="-arch sparc ${PLTFMFLAG}"
- fi
-
- if [ ! -z "$PLTFMFLAG" ]; then
- $FXPCMP -precompFlags "${PLTFMFLAG}"
- echo "Installing FAT on ${PLTFMFLAG}"
- else
- $FXPCMP
- echo "Installing THIN on native platform"
- fi
-
- ################################################
- # The above replaces this commented out script
- # if ( -x /usr/bin/fixPrecomps ) then
- # /usr/bin/fixPrecomps -precompFlags -arch m68k -arch i386 -arch sparc
- # endif
- ################################################
-
- else
- echo "Couldn't find /bin/cc. /bin/cc (in the DeveloperTools package)"
- echo "is required for building precompiled headers."
- exit 1
- fi
-
-
-