X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d8f1676e9753a6748114be8350b37e03e064083f..d166393042aa59c3247c77ea997e68a835e8e4f5:/build/tools/git-make-release?ds=sidebyside diff --git a/build/tools/git-make-release b/build/tools/git-make-release index 78f5448996..c1089a14e4 100755 --- a/build/tools/git-make-release +++ b/build/tools/git-make-release @@ -28,7 +28,7 @@ version=$1 if [ -z "$version" ]; then - echo "Must specify the distribution version." >2 + echo "Must specify the distribution version." >&2 exit 1 fi @@ -48,21 +48,31 @@ cleanup git archive --prefix=$prefix/ HEAD | (cd ..; tar x) cd .. -mv $prefix/include/wx/msw/setup0.h $prefix/include/wx/msw/setup.h +# All setup0.h files are supposed to be renamed to just setup.h when checked +# out and in the distribution. +find $prefix/include/wx -type f -name setup0.h | while read f; do + mv $f ${f%0.h}.h +done + +# Compile gettext catalogs. +make -C $prefix/locale allmo tar cjf $prefix.tar.bz2 $prefix cd $prefix set +x for f in `cat ../eol-native`; do - if [ $f == "include/wx/msw/setup0.h" ]; then - # we renamed this file above so adjust - f="include/wx/msw/setup.h" - fi - unix2dos $f + case $f in + */setup0.h) + # we renamed this file above so adjust + f=${f%0.h}.h + ;; + esac + unix2dos -q $f done set -x zip -q -r ../$prefix.zip . 7z a ../$prefix.7z . >/dev/null +7z a ../${prefix}_Headers.7z include >/dev/null