Add a (Python) script to upload files to GoogleCode
[msysgit/mtrensch.git] / share / WinGit / portable-release.sh
blobc8d793aecf5be6a5373afb938ad5664271f21732
1 #!/bin/sh
3 test -z "$1" && {
4 echo "Usage: $0 <version>"
5 exit 1
8 TARGET="$HOME"/PortableGit-$1.7z
9 OPTS7="-m0=lzma -mx=9 -md=64M"
10 TARGET7=tmp.7z
11 TMPDIR=/tmp/WinGit
13 DONT_REMOVE_BUILTINS=1 "$(dirname $0)/copy-files.sh" $TMPDIR &&
14 cd "$TMPDIR" &&
15 cp /share/WinGit/README.portable ./ &&
16 cp /msys.bat ./git-bash.bat &&
17 cp /git-cmd.bat ./ &&
18 /share/7-Zip/7za.exe a $OPTS7 $TARGET7 * ||
19 exit
21 if test -z "$NO_SFX"
22 then
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"' &&
33 echo 'GUIMode="1"' &&
34 echo 'InstallPath="%PROGRAMFILES%\\Git"' &&
35 echo 'OverwriteMode="0"' &&
36 echo ';!@InstallEnd@!7z' &&
37 cat $TARGET7) > "$TARGET"
38 else
39 mv $TARGET7 > "$TARGET"
40 fi &&
41 echo "Created $TARGET"