2 if ! test -d win32
; then
3 echo "Please run this script from the root of the cola source tree"
7 # Add Python and Gettext to our path
8 for python
in "/c/Python27" "/c/Python26" "/c/Python25"
15 PATH
="$python":/bin
:/usr
/bin
:/mingw
/bin
:"/c/Program Files/Gnu/bin":win32
:"$PATH"
18 VERSION
=$
(bin
/git-cola version |
awk '{print $3}')
29 echo "Usage: $0 [--version <version>]"
35 BASENAME
=git-cola-
$VERSION
40 echo "Building installer for git-cola $VERSION"
42 python setup.py
--quiet install \
44 --install-scripts="$ROOT"/bin
45 rm -rf "$ROOT"/lib
"$ROOT"/Lib build
47 cp $BASENAME/bin
/git-cola
$BASENAME/bin
/git-cola.pyw
48 cp $BASENAME/bin
/git-dag
$BASENAME/bin
/git-dag.pyw
49 mkdir
-p $ETC 2>/dev
/null
50 cp win32
/git.bmp win32
/gpl-2.0.rtf win32
/git.ico
$ETC
52 NOTES
=$ETC/ReleaseNotes.txt
54 printf "git-cola: v$VERSION\nBottled-on: $(date)\n\n\n" > $NOTES
55 printf "To run cola, just type 'cola' from a Git Bash session.\n\n\n" >> $NOTES
57 tag
=$
(git tag |
tail -2 |
head -1)
58 echo "--------------------------------------------------------" >> $NOTES
59 echo " Changes since $tag" >> $NOTES
60 echo "--------------------------------------------------------" >> $NOTES
62 git shortlog
$tag..
>> $NOTES
65 vim
-c "set ff=dos" -c "wq" $NOTES
67 OUTPUTDIR
="$(pwd -W)" &&
68 sed -e "s/%APPVERSION%/$VERSION/" -e "s@%OUTPUTDIR%@$OUTPUTDIR@" \
69 < win32
/install.iss
> $BASENAME/install.iss
&&
71 echo "Lauching Inno Setup compiler ..." &&
72 /share
/InnoSetup
/ISCC.exe
install.iss |
grep -Ev "\s*Reading|\s*Compressing" &&