]>
git.saurik.com Git - wxWidgets.git/blob - build/tools/git-make-release
3 # This is the script used by VZ to make wxWidgets releases. It is unofficial
4 # because it must be ran from git-svn repository and not the official svn one
5 # and relies on having a recent Perl installation. But it has the advantage of
6 # being very simple because git knows which files should be included in the
7 # distribution and we don't need to maintain the list of them ourselves but we
8 # also don't run the risk of including anything unwanted.
10 # Another prerequisite for using it is to create the list of files to be
11 # converted to DOS EOLs for Windows distribution, it must exist in the parent
12 # directory and be called eol-native. This can be done using the companion
13 # svn-find-native-eols.pl script. And will only need to be redone when
14 # svn:eol-style property changes for any files (most likely because it will be
15 # set for a newly added file).
17 # To summarize, here are the steps to create the release:
20 # % $git/build/tools/svn-find-native-eols.pl > $git/../eol-native
22 # % git svn tag WX_x_y_z
23 # % ./build/tools/git-make-release x.y.z
24 # % ... upload ../wxWidgets-x.y.z.{7z,tar.bz2,zip} ...
26 # If anything is wrong and some minor fixes are required, only the last two
27 # steps (tagging and git-make-release) must be repeated.
30 if [ -z "$version" ]; then
31 echo "Must specify the distribution version." >2
38 prefix
=wxWidgets
-$version
39 destdir
=$(dirname $(readlink -f $0))/..
/..
/..
/$prefix
45 trap cleanup INT TERM EXIT
49 git archive
--prefix=$prefix/ HEAD
| (cd ..
; tar x
)
51 mv $prefix/include
/wx
/msw
/setup0.h
$prefix/include
/wx
/msw
/setup.h
53 tar cjf
$prefix.
tar.bz2
$prefix
57 for f
in `cat ../eol-native`; do
58 if [ $f == "include/wx/msw/setup0.h" ]; then
59 # we renamed this file above so adjust
60 f
="include/wx/msw/setup.h"
66 zip -q -r ..
/$prefix.
zip .
68 7z a ..
/$prefix.7z .
>/dev
/null