2 cd "$(git rev-parse --show-toplevel)"
4 WIN32
="$PWD/contrib/win32"
8 echo "Please run this script from the git-cola source tree"
12 # Add Python and Gettext to our path
13 for python
in "/c/Python27" "/c/Python26" "/c/Python25"
20 PATH
="$python":/bin
:/usr
/bin
:/mingw
/bin
:"/c/Program Files/Gnu/bin":"$WIN32":"$PATH"
23 VERSION
=$
(bin
/git-cola version
--brief)
34 echo "Usage: $0 [--version <version>]"
40 BASENAME
="git-cola-$VERSION"
45 echo "Building installer for git-cola $VERSION" &&
47 python setup.py
--quiet install \
49 --install-scripts="$ROOT"/bin
&&
51 rm -rf "$ROOT/lib" "$ROOT/Lib" build
&&
53 cp "$BASENAME/bin/git-cola" $BASENAME/bin
/git-cola.pyw
&&
54 cp "$BASENAME/bin/git-dag" $BASENAME/bin
/git-dag.pyw
&&
56 mkdir
-p "$ETC" 2>/dev
/null
&&
57 cp "$WIN32/git.bmp" "$WIN32/gpl-2.0.rtf" "$WIN32/git.ico" "$ETC" &&
59 NOTES
="$ETC/ReleaseNotes.txt" &&
61 printf "git-cola: v$VERSION\nBottled-on: $(date)\n\n\n" >"$NOTES" &&
63 tag
=$
(git tag |
tail -2 |
head -1) &&
64 echo "--------------------------------------------------------" >>"$NOTES" &&
65 echo " Changes since $tag" >>"$NOTES" &&
66 echo "--------------------------------------------------------" >>"$NOTES" &&
68 git shortlog
"$tag.." >>"$NOTES" &&
71 vim
-c "set ff=dos" -c "wq" "$NOTES" &&
72 sed -e "s/%APPVERSION%/$VERSION/" -e "s/%OUTPUTDIR%/../" \
73 < "$WIN32/install.iss" > "$BASENAME/install.iss" &&
76 echo "Lauching Inno Setup compiler ..." &&
77 /share
/InnoSetup
/ISCC.exe
install.iss |
78 grep -Ev "\s*Reading|\s*Compressing"