#-- Copyright: (c) 2003 Gilles Depeyrot
#-- Licence: wxWindows licence
#-----------------------------------------------------------------------------
#-- Copyright: (c) 2003 Gilles Depeyrot
#-- Licence: wxWindows licence
#-----------------------------------------------------------------------------
-if [ ! -f "${1}/../include/wx/mac/setup.h" ]; then
- echo "${0}:${LINENO}: warning: copying \"include/wx/mac/setup0.h\" to \"include/wx/mac/setup.h\""
- echo "${0}:${LINENO}: warning: edit \"include/wx/mac/setup.h\" to choose the features you would like to compile wxWindows with[out]"
- cp "${1}/../include/wx/mac/setup0.h" "${1}/../include/wx/mac/setup.h"
- if [ ! -f "${1}/../include/wx/mac/setup.h" ]; then
- echo "${0}:${LINENO}: error: unable to create setup file \"${1}/../include/wx/mac/setup.h\""
+if [ ! -f "${1}/../include/wx/osx/setup.h" ]; then
+ echo "${0}:${LINENO}: warning: copying \"include/wx/osx/setup0.h\" to \"include/wx/osx/setup.h\""
+ echo "${0}:${LINENO}: warning: edit \"include/wx/osx/setup.h\" to choose the features you would like to compile wxWindows with[out]"
+ cp "${1}/../include/wx/osx/setup0.h" "${1}/../include/wx/osx/setup.h"
+ if [ ! -f "${1}/../include/wx/osx/setup.h" ]; then
+ echo "${0}:${LINENO}: error: unable to create setup file \"${1}/../include/wx/osx/setup.h\""
-if [ "${1}/../include/wx/mac/setup0.h" -nt "${1}/../include/wx/mac/setup.h" ] ; then
- echo "${0}:${LINENO}: warning: \"include/wx/mac/setup0.h\" is more recent than \"include/wx/mac/setup.h\""
- echo "${0}:${LINENO}: warning: edit or replace \"include/wx/mac/setup.h\" to integrate changes"
+if [ "${1}/../include/wx/osx/setup0.h" -nt "${1}/../include/wx/osx/setup.h" ] ; then
+ echo "${0}:${LINENO}: warning: \"include/wx/osx/setup0.h\" is more recent than \"include/wx/osx/setup.h\""
+ echo "${0}:${LINENO}: warning: edit or replace \"include/wx/osx/setup.h\" to integrate changes"
-if [ ! -f "${2}/include/wx/setup.h" ] ; then
- cp "${1}/../include/wx/mac/setup.h" "${2}/include/wx/setup.h"
-else
- if [ "${1}/../include/wx/mac/setup.h" -nt "${2}/include/wx/setup.h" ] ; then
- cp "${1}/../include/wx/mac/setup.h" "${2}/include/wx/setup.h"
+if [ ! -f "${2}/include/wx/setup.h" -o \
+ "${1}/../include/wx/osx/setup.h" -nt "${2}/include/wx/setup.h" ] ; then
+ cp "${1}/../include/wx/osx/setup.h" "${2}/include/wx/setup.h"
+ if [ ! -f "${2}/include/wx/setup.h" ] ; then
+ echo "${0}:${LINENO}: error: unable to create target setup file \"${2}/include/wx/setup.h\""
+ exit 1