-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
+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"
+ 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