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$" &&
26 cd git
&& git ls-files |
grep -v '^\"\?gitweb' |
sed 's|^|git/|' &&
28 sed "s|^|msysGit/|" > $LIST &&
31 OPTS7
="-m0=lzma -mx=9 -md=64M" &&
32 /share
/7-Zip/7z.exe a
$OPTS7 "$TARGET".7z @
$LIST &&
34 (cat /share
/7-Zip/7zSD.sfx
&&
35 echo ';!@Install@!UTF-8!' &&
36 echo 'Progress="yes"' &&
37 echo 'Title="GitMe: MinGW Git + MSys installation"' &&
38 echo 'BeginPrompt="This archive contains the complete system needed to\nbootstrap the latest MinGW Git and MSys environment"' &&
39 echo 'CancelPrompt="Do you want to cancel MSysGit installation?"' &&
40 echo 'ExtractDialogText="Please, wait..."' &&
41 echo 'ExtractPathText="Where do you want to install MSysGit?"' &&
42 echo 'ExtractTitle="Extracting..."' &&
43 echo 'GUIFlags="8+32+64+256+4096"' &&
45 echo 'InstallPath="C:\\msysgit"' &&
46 echo 'OverwriteMode="2"' &&
47 echo 'RunProgram="\"%%T\\msysGit\\bin\\sh.exe\" --login -i"' &&
48 echo ';!@InstallEnd@!7z' &&
49 cat "$TARGET".7z
) > "$TARGET"