From: Stefan Csomor Date: Wed, 11 Jul 2007 15:50:41 +0000 (+0000) Subject: avoiding copies if not necessary (better dependancy tracking) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8577d8c34dd6b2612cc6f2d3ce755cc1482abc9f avoiding copies if not necessary (better dependancy tracking) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/distrib/mac/pbsetup-sh b/distrib/mac/pbsetup-sh index c7477c8a42..e8a671614c 100755 --- a/distrib/mac/pbsetup-sh +++ b/distrib/mac/pbsetup-sh @@ -49,9 +49,15 @@ 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 setup.h to setup.h if setup.h doesn't exist +# Copy user setup.h to build setup.h if newer or non existant # -cp "${1}/../include/wx/mac/setup.h" "${2}/include/wx/setup.h" +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" + 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