12 echo "Usage: $0 <version>" >&2
21 echo "If that is okay, please call '$0 -f $version'" >&2
26 git update-index
--refresh &&
27 git diff-files
--quiet &&
28 git diff-index
--cached HEAD
--) ||
29 die
"Git submodule has dirty files"
31 test git.exe
= $
(ls -t git.exe $
(git ls-files
) |
head -n 1)) ||
32 die
"Git's git.exe is not up-to-date (run 'cd /git && make' to fix)"
33 for f
in /bin
/git
* /libexec
/git-core
/git
*
40 basename=gitk-git
/gitk
42 */git-citool|
*/git-gui
)
43 basename=git-gui
/git-gui
45 */git-gui--askpass|
*/git-gui.tcl
)
46 basename=git-gui
/$
(basename "$f")
49 basename=$
(basename "$f")
52 cmp "$f" "/git/$basename" ||
53 die
"Installed Git disagrees with contents of /git/"
56 git update-index
--refresh &&
57 git diff-files
--quiet &&
58 git diff-index
--cached HEAD
--) ||
59 die
"msysGit super project not up-to-date"
61 test ! -z "$(git tag --contains HEAD)") ||
62 die
"Git's HEAD is untagged"
67 /share
/WinGit
/copy-files.sh
$TMPDIR &&
68 sed "s/msysGit/Git (version $version)/" < /etc
/motd
> $TMPDIR/etc
/motd
&&
69 cp /share
/resources
/gpl-2.0.rtf
/share
/resources
/git.bmp
$TMPDIR &&
70 homewinpath
=$
(cd ~
; pwd -W) &&
71 sed -e "s/%APPVERSION%/$version/" -e "s@%OUTPUTDIR%@$homewinpath@" \
72 < /share
/WinGit
/install.iss
> $TMPDIR/install.iss
&&
73 echo "Lauching Inno Setup compiler ..." &&
74 /share
/InnoSetup
/ISCC.exe
"$TMPDIR/install.iss" /q |
grep -Ev "\s*Reading|\s*Compressing" &&
75 (cd / && git tag Git-
$1)