4 echo "Usage: $0 <version>"
8 TARGET
="$HOME"/PortableGit-
$1.7z
9 OPTS7
="-m0=lzma -mx=9 -md=64M"
13 DONT_REMOVE_BUILTINS
=1 "$(dirname $0)/copy-files.sh" $TMPDIR &&
15 cp /share
/WinGit
/README.portable .
/ &&
16 cp /msys.bat .
/git-bash.bat
&&
18 /share
/7-Zip/7za.exe a
$OPTS7 $TARGET7 * ||
23 (cat /share
/7-Zip/7zSD.sfx
&&
24 echo ';!@Install@!UTF-8!' &&
25 echo 'Progress="yes"' &&
26 echo 'Title="WinGit: MinGW Git + minimal MSys installation"' &&
27 echo 'BeginPrompt="This program installs a complete Git for MSys setup"' &&
28 echo 'CancelPrompt="Do you want to cancel WinGit installation?"' &&
29 echo 'ExtractDialogText="Please, wait..."' &&
30 echo 'ExtractPathText="Where do you want to install WinGit?"' &&
31 echo 'ExtractTitle="Extracting..."' &&
32 echo 'GUIFlags="8+32+64+256+4096"' &&
34 echo 'InstallPath="%PROGRAMFILES%\\Git"' &&
35 echo 'OverwriteMode="0"' &&
36 echo ';!@InstallEnd@!7z' &&
37 cat $TARGET7) > "$TARGET"
39 mv $TARGET7 > "$TARGET"
41 echo "Created $TARGET"