]>
git.saurik.com Git - wxWidgets.git/blob - distrib/mac/pbsetup-sh
2 #-----------------------------------------------------------------------------
3 #-- Name: distrib/mac/pbsetup-sh
4 #-- Purpose: Copy setup.h for ProjectBuilder
5 #-- Author: Gilles Depeyrot
7 #-- Created: 12.09.2003
9 #-- Copyright: (c) 2003 Gilles Depeyrot
10 #-- Licence: wxWindows licence
11 #-----------------------------------------------------------------------------
13 # Usage: $0 SRCROOT SYMROOT
15 # Display errors/warnings in the correct format for ProjectBuilder parsing
17 if [ $# -ne 2 ] ; then
18 echo "${0}:${LINENO}: error: Usage: ${0} SRCROOT SYMROOT"
22 # Create wx include directory if necessary
24 if [ ! -d "${2}/include/wx" ]; then
25 mkdir -p "${2}/include/wx"
26 if [ ! -d "${2}/include/wx" ] ; then
27 echo "${0}:${LINENO}: error: unable to create directory \"${2}/include/wx\""
32 # Copy stock setup0.h to setup.h if it doesn't exist
33 # preserve user modifications made to setup.h
35 if [ ! -f "${1}/../include/wx/mac/setup.h" ]; then
36 echo "${0}:${LINENO}: warning: copying \"include/wx/mac/setup0.h\" to \"include/wx/mac/setup.h\""
37 echo "${0}:${LINENO}: warning: edit \"include/wx/mac/setup.h\" to choose the features you would like to compile wxWindows with[out]"
38 cp "${1}/../include/wx/mac/setup0.h" "${1}/../include/wx/mac/setup.h"
39 if [ ! -f "${1}/../include/wx/mac/setup.h" ]; then
40 echo "${0}:${LINENO}: error: unable to create setup file \"${1}/../include/wx/mac/setup.h\""
45 # Check that stock setup0.h is not newer than user setup.h
47 if [ "${1}/../include/wx/mac/setup0.h" -nt "${1}/../include/wx/mac/setup.h" ] ; then
48 echo "${0}:${LINENO}: warning: \"include/wx/mac/setup0.h\" is more recent than \"include/wx/mac/setup.h\""
49 echo "${0}:${LINENO}: warning: edit or replace \"include/wx/mac/setup.h\" to integrate changes"
52 # Copy setup.h to setup.h if setup.h doesn't exist
54 cp "${1}/../include/wx/mac/setup.h" "${2}/include/wx/setup.h"
55 if [ ! -f "${2}/include/wx/setup.h" ] ; then
56 echo "${0}:${LINENO}: error: unable to create target setup file \"${2}/include/wx/setup.h\""