5 echo "Usage: $0 <version>"
10 TARGET
="$HOME"/msysGit-
$VERSION.exe
12 case "$(basename "$
(cd /; pwd -W)")" in
15 echo "Basename of the msysGit directory is not msysGit"
19 cd "$(dirname "$
(cd /; pwd -W)")"
25 git ls-files |
grep -v '^\"\?git/gitweb' &&
27 sed "s|^|msysGit/|" > $LIST &&
30 OPTS7
="-m0=lzma -mx=9 -md=64M" &&
31 /share
/7-Zip/7z.exe a
$OPTS7 "$TARGET".7z @
$LIST &&
33 (cat /share
/7-Zip/7zSD.sfx
&&
34 echo ';!@Install@!UTF-8!' &&
35 echo 'Progress="yes"' &&
36 echo 'Title="GitMe: MinGW Git + MSys installation"' &&
37 echo 'BeginPrompt="This archive contains the complete system needed to\nbootstrap the latest MinGW Git and MSys environment"' &&
38 echo 'CancelPrompt="Do you want to cancel MSysGit installation?"' &&
39 echo 'ExtractDialogText="Please, wait..."' &&
40 echo 'ExtractPathText="Where do you want to install MSysGit?"' &&
41 echo 'ExtractTitle="Extracting..."' &&
42 echo 'GUIFlags="8+32+64+256+4096"' &&
44 echo 'InstallPath="C:\\msysgit"' &&
45 echo 'OverwriteMode="2"' &&
46 echo 'RunProgram="%%T\\msysGit\\bin\\sh.exe --login -i"' &&
47 echo ';!@InstallEnd@!7z' &&
48 cat "$TARGET".7z
) > "$TARGET"