X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8577d8c34dd6b2612cc6f2d3ce755cc1482abc9f..658d98040dc6c7146c9c1ef651c7e5c0ebe83ec7:/distrib/mac/pbsetup-sh?ds=inline diff --git a/distrib/mac/pbsetup-sh b/distrib/mac/pbsetup-sh index e8a671614c..e6a4f6909b 100755 --- a/distrib/mac/pbsetup-sh +++ b/distrib/mac/pbsetup-sh @@ -49,16 +49,13 @@ if [ "${1}/../include/wx/mac/setup0.h" -nt "${1}/../include/wx/mac/setup.h" ] ; echo "${0}:${LINENO}: warning: edit or replace \"include/wx/mac/setup.h\" to integrate changes" fi # -# Copy user setup.h to build setup.h if newer or non existant +# Copy user setup.h to build setup.h if the latter doesn't exist or is older # -if [ ! -f "${2}/include/wx/setup.h" ] ; then +if [ ! -f "${2}/include/wx/setup.h" -o \ + "${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" -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" ] ; then + echo "${0}:${LINENO}: error: unable to create target setup file \"${2}/include/wx/setup.h\"" + exit 1 fi fi -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 -fi