X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e9ccdeb95c98ae704d39b1082b1b93a116787f7..2edad6fc48eb24235bbbb28345a568c1d859b15c:/build/update-setup-h diff --git a/build/update-setup-h b/build/update-setup-h index 8f2ac1b9fc..58b1e1bc89 100755 --- a/build/update-setup-h +++ b/build/update-setup-h @@ -28,7 +28,8 @@ msg() # file the common options are meant to be included in is the parameter) cat_common_options_for() { - cmd="cat include/wx/setup_inc.h" + # get rid of the copyright header on top of the file + cmd="sed '1,/^$/d' include/wx/setup_inc.h" # the file used for configure is special: we need to get rid of C++ # comments in it because it is included by some C code and we also have to @@ -52,7 +53,7 @@ update_single_setup_h() return 0 fi - echo -n "Updating $1..." + echo -n "Updating $1 ..." tmp=$i.$$.tmp sed -e '/^\/\* --- start common options --- \*\/$/q' $1 > $tmp &&