2 ##############################################################################
3 # Name: build/update-setup.h
4 # Purpose: run from root wx directory to update wx/*/setup.h files: those
5 # having special comment markers in them will be update using
6 # include/wx/setup_inc.h contents
9 # Copyright: (c) 2005 Vadim Zeitlin <vadim@wxwindows.org>
10 # Licence: wxWindows licence
11 ##############################################################################
20 update_single_setup_h
()
23 sed -e '/^\/\* --- start common options --- \*\/$/q' $1 > $tmp &&
24 cat include
/wx
/setup_inc.h
>> $tmp &&
25 sed -n -e '/^\/\* --- end common options --- \*\/$/,$p' $1 >> $tmp &&
29 error
"$0: failed to update file $1"
35 if [ ! -f wxwin.
m4 ]; then
36 error
"$0: must be ran from root wx directory"
40 update_single_setup_h include
/wx
/msw
/setup0.h
41 update_single_setup_h include
/wx
/mac
/setup0.h
43 # get rid of C++ comments in this file
44 update_single_setup_h setup.h.
in
45 sed -i -e '/^\/\//d' -e 's@ *//.*$@@' setup.h.
in