X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7de9aaf012b260a7b24f0bc377bf415624fc20e2..c8841d1493e0d19085990c9e331dd85c4da45d8e:/misc/scripts/inc_release diff --git a/misc/scripts/inc_release b/misc/scripts/inc_release index f151d10734..160cf7b5a2 100755 --- a/misc/scripts/inc_release +++ b/misc/scripts/inc_release @@ -4,7 +4,6 @@ # Purpose: increments the release version number in all files mentioned in # docs/tech/tn0011.txt # Created: 2007-01-07 -# RCS-ID: $Id$ # Copyright: (c) 2007 Vadim Zeitlin # Licence: wxWindows licence ############################################################################## @@ -17,6 +16,14 @@ msg() { echo "$progname: $*" } +msgn() { + echo -n "$progname: $*" +} + +msgc() { + echo "$*" +} + run_sed() { filename=$1 shift @@ -26,8 +33,15 @@ run_sed() { shift done - msg " updating $filename" - eval "sed -i $cmd $filename" + msgn " processing $filename ... " + eval "sed $cmd $filename" > $filename.$$ + if cmp -s $filename $filename.$$; then + rm $filename.$$ + msgc "unchanged" + else + mv $filename.$$ $filename + msgc "done" + fi } progname=`basename $0` @@ -56,10 +70,6 @@ msg "Updating version to $ver_string_new" ver_for_sed="$ver_major\.$ver_minor\.$ver_release" -run_sed include/wx/version.h \ - "s/^\(#define wxRELEASE_NUMBER *\) $ver_release$/\1 $ver_release_new/" \ - "s/^\(#define wxSUBRELEASE_NUMBER *\) [0-9]\{1,\}$/\1 0/" - run_sed configure.in \ "/^AC_INIT/s/$ver_for_sed/$ver_string_new/" \ "s/^wx_release_number=$ver_release/wx_release_number=$ver_release_new/" \ @@ -69,4 +79,42 @@ for f in *.spec; do run_sed $f "/^%define *ver/s/$ver_for_sed/$ver_string_new/" done -run_sed build/script/win_docs.bat "/SET WXW_VER=/s/$ver_for_sed/$ver_string_new/" +run_sed build/osx/wxvers.xcconfig \ + "/DYLIB_.* = /s/$ver_for_sed/$ver_string_new/" + +run_sed build/tools/bld_chm_exe.bat \ + "/^SET WXW_VER=/s/$ver_for_sed/$ver_string_new/" + +run_sed docs/readme.txt \ + "/wxWidgets /s/$ver_for_sed/$ver_string_new/" \ + "/\//s/$ver_for_sed/$ver_string_new/" \ + "/naming: while/s/$ver_for_sed/$ver_string_new/" + +run_sed docs/doxygen/Doxyfile_inc \ + "/^PROJECT_NUMBER/s/$ver_for_sed/$ver_string_new/" + +run_sed docs/doxygen/latexdocstart.inc \ + "/\\large Version/s/$ver_for_sed/$ver_string_new/" + +run_sed include/wx/version.h \ + "s/^\(#define wxRELEASE_NUMBER *\) $ver_release$/\1 $ver_release_new/" \ + "s/^\(#define wxSUBRELEASE_NUMBER *\) [0-9]\{1,\}$/\1 0/" \ + "/^#define wxVERSION_STRING/s/$ver_for_sed/$ver_string_new/" + +run_sed include/wx/osx/config_xcode.h \ + "/^#define PACKAGE/s/$ver_for_sed/$ver_string_new/" + +run_sed samples/Info.plist \ + "/version/s/$ver_for_sed/$ver_string_new/" \ + "//s/$ver_for_sed/$ver_string_new/" + +run_sed samples/minimal/Info_carbon.plist \ + "//s/$ver_for_sed/$ver_string_new/" +run_sed samples/minimal/Info_cocoa.plist \ + "//s/$ver_for_sed/$ver_string_new/" + +run_sed samples/docview/Info.plist \ + "/versionon/s/$ver_for_sed/$ver_string_new/" \ + "//s/$ver_for_sed/$ver_string_new/" + +msg "Don't forget to change the C:R:A triplet in build/bakefiles/version.bkl now!"