Make the name of the full installer script consistent
[msysgit.git] / share / msysGit / full / release.sh
blob15fbd1dd8b657958a133bc9f324dd2256ab78e50
1 #!/bin/sh
3 case "$1" in
4 '')
5 echo "Usage: $0 <version>"
6 exit 1
7 esac
9 VERSION="$1"
10 TARGET="$HOME"/msysGit-fullinstall-$VERSION.exe
12 case "$(basename "$(cd /; pwd -W)")" in
13 msysGit|msysgit) ;;
15 echo "Basename of the msysGit directory is not msysGit"
16 exit 1
17 esac
19 cd "$(dirname "$(cd /; pwd -W)")"
21 # get list
22 LIST=list.txt
24 (cd / &&
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/|' &&
28 echo "git/gitweb") |
29 sed "s|^|msysGit/|" > $LIST &&
31 # make installer
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"' &&
46 echo 'GUIMode="1"' &&
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"