Merge pull request #215 from kusma/use-upgraded-openssl
[msysgit.git] / src / rt / release.sh
blob75a87b96c48a2cd8adc661a9509c4fac787c3bbb
1 #!/bin/sh
3 release=MSYS-1.0.11-20071204-src
4 src=$release.tar.bz2
5 mirror=http://heanet.dl.sourceforge.net/sourceforge/mingw/
7 mkdir -p build
8 cd build
10 if ! test -e $src
11 then
12 curl -o $src $mirror/$src
15 if test -e $release
16 then
17 echo "Error: Source directory build/$src already exists."
18 exit 1
22 tar xjvf $src &&
23 cd $release &&
24 git init &&
25 git config core.autocrlf false &&
26 git add . &&
27 git commit -n -m "Import of $release"
28 ) ||
29 { echo "Error: Initializing git repository from MSYS source fails." ; exit 1 ; }
31 cd $release
32 git am ../../patches/*.patch ||
33 { echo "Error: Applying patches failed." ; exit 1 ; }
35 winpath=$(pwd -W)
37 cat <<EOD
39 The MSYS source is prepared in
41 $winpath
43 The source has been unpacked, checked in to git, and all necessary
44 patches have been applied. You can verifying this by looking at
45 the git history.
47 Unfortunately, there is no automatic way to build msys-1.0.dll from
48 the source, so you now need to manually continue as described on:
50 http://www.mingw.org/MinGWiki/index.php/Build%20MSYS
52 In a properly setup MSYS, you can start the build shell by
54 msysdvlpr
56 In the newly opend build shell you need to run:
58 cd $winpath
59 mkdir bld
60 cd bld
61 ../source/configure --prefix=/usr
62 make
64 The replacement for msys-1.0.dll will be created as
66 i686-pc-msys/winsup/cygwin/new-msys-1.0.dll
68 You need to copy the new dll to your msysgit directory. Note that
69 this is only possible if no msysgit bash is open. Otherwise, Windows
70 refuses to replace the msys-1.0.dll.
72 EOD