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