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