5 echo "Usage: $0 <version> [<installer-to-update>]"
12 TARGET
="$HOME"/msysGit-
$VERSION.exe
14 test -z "$UPDATE" ||
{
15 test "$UPDATE" = "$TARGET" ||
mv "$UPDATE" "$TARGET" ||
exit
19 case "$(basename "$
(cd /; pwd -W)")" in
22 echo "Basename of the msysGit directory is not msysGit"
26 cd "$(dirname "$
(cd /; pwd -W)")"
32 git ls-files |
grep -v '^\"\?git/gitweb' &&
34 sed "s|^|msysGit/|" > $LIST &&
37 OPTS7
="-m0=lzma -mx=9 -md=64M -sfx7z.sfx $TARGET" &&
39 "$PROGRAMFILES"/7-Zip/7z.exe
$ACTION $OPTS7 @
$LIST