1#!/bin/sh 2# 3# Script to build from a common directory and install to separate directories 4# to verify build output for B&I. 5# 6 7# Common stuff 8BUILDDIR="/tmp/cups.roots" 9RC_CFLAGS="-arch i386 -arch x86_64 -arch ppc" 10RC_ARCHS="i386 x86_64 ppc" 11SRCROOT="`pwd`" 12 13# Clean out old builddir 14if test -d $BUILDDIR; then 15 rm -rf $BUILDDIR 16fi 17 18mkdir -p $BUILDDIR 19mkdir -p $BUILDDIR/common~obj 20mkdir -p $BUILDDIR/cups~dst 21mkdir -p $BUILDDIR/cups~sym 22mkdir -p $BUILDDIR/cups_libs~dst 23mkdir -p $BUILDDIR/cups_libs~sym 24 25# Make cups_libs 26make DSTROOT="$BUILDDIR/cups_libs~dst" SYMROOT="$BUILDDIR/cups_libs~sym" \ 27 OBJROOT="$BUILDDIR/common~obj" SRCROOT="$SRCROOT" \ 28 RC_CFLAGS="$RC_CFLAGS" RC_ARCHS="$RC_ARCHS" install-libs 29 30# Make cups 31make DSTROOT="$BUILDDIR/cups~dst" SYMROOT="$BUILDDIR/cups~sym" \ 32 OBJROOT="$BUILDDIR/common~obj" SRCROOT="$SRCROOT" \ 33 RC_CFLAGS="$RC_CFLAGS" RC_ARCHS="$RC_ARCHS" install 34