#!/bin/sh # # Here we create empty xcconfig files if they do not exist. Otherwise, # the build will fail. # configs='Debug Release' for config in $configs do if [ ! -f $TOPLEVEL/mac/$config.xcconfig ] then touch $TOPLEVEL/mac/$config.xcconfig fi done # # Generate the header file for preprocessing the Info.plist # # It's also used for create the distribution files # cd ${TOPLEVEL} mkdir -p mac/build eval $(g++ -E -dM src/Audacity.h | awk '/#define *AUDACITY_(VERSION|RELEASE|REVISION|MODLEVEL) /{print $2 "=" $3}') case $CONFIGURATION in Debug|Debug64) AUDACITY_EXECUTABLE=Audacity;; *) AUDACITY_EXECUTABLE=Audacity.sh;; esac cat >mac/build/Info.plist.h <