Skip to content

Commit 054e57d

Browse files
committed
Merge 'net-installer-misc' into HEAD
While testing the upcoming HTTP proxy support in the net installer, a couple of unrelated issues were found and fixed; These fixes are contained in this branch, and let the net installer now also reports more clearly what it is doing at any given moment. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 143a81c + d9e78e0 commit 054e57d

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

net-installer/setup-git-sdk.bat

+11-6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
:INSTALL_RUNTIME
1818
@SET /A counter+=1
1919
@IF %counter% GEQ 5 (
20-
@ECHO "Could not install msys2-runtime"
20+
@ECHO Could not install msys2-runtime
2121
@PAUSE
2222
@EXIT 1
2323
)
@@ -33,7 +33,7 @@
3333
:INSTALL_PACMAN
3434
@SET /A counter+=1
3535
@IF %counter% GEQ 5 (
36-
@ECHO "Could not install pacman"
36+
@ECHO Could not install pacman
3737
@PAUSE
3838
@EXIT 1
3939
)
@@ -47,7 +47,7 @@
4747
:INSTALL_REST
4848
@SET /A counter+=1
4949
@IF %counter% GEQ 5 (
50-
@ECHO "Could not install the remaining packages"
50+
@ECHO Could not install the remaining packages
5151
@PAUSE
5252
@EXIT 1
5353
)
@@ -67,14 +67,19 @@
6767

6868
@REM Avoid overlapping address ranges
6969
@IF MINGW32 == %MSYSTEM% (
70-
ECHO "Auto-rebasing .dll files"
70+
ECHO Auto-rebasing .dll files
7171
CALL %cwd%\autorebase.bat
7272
)
7373

7474
@REM Install shortcut on the desktop
75-
@bash --login -c 'SHORTCUT="$HOME/Desktop/Git SDK @@BITNESS@@-bit.lnk"; test -f "$SHORTCUT" ^|^| create-shortcut.exe --icon-file /msys2.ico --work-dir / /mingw@@BITNESS@@_shell.bat "$SHORTCUT"'
75+
@ECHO.
76+
@ECHO Installing the 'Git SDK @@BITNESS@@-bit' shortcut on the Desktop
77+
@bash --login -c 'SHORTCUT="$HOME/Desktop/Git SDK @@BITNESS@@-bit.lnk"; test -f "$SHORTCUT" ^|^| create-shortcut.exe --icon-file /msys2.ico --work-dir / /git-bash.exe "$SHORTCUT"'
7678

7779
@REM now clone the Git sources, build it, and start an interactive shell
78-
@mintty -i /msys2.ico bash --login -c "mkdir -p /usr/src && cd /usr/src && for project in MINGW-packages MSYS2-packages build-extra; do mkdir -p $project && (cd $project && git init && git config core.autocrlf false && git remote add origin https://github.com/git-for-windows/$project); done; git clone -b @@GIT_BRANCH@@ -c core.autocrlf=false https://github.com/git-for-windows/git && cd git && make install; bash --login -i"
80+
@ECHO.
81+
@ECHO Running Git Bash to build Git and run an interactive Bash session
82+
@ECHO This window will close automatically once that session is over
83+
@mintty -i /msys2.ico bash --login -c "test -s /mingw@@BITNESS@@/ssl/certs/ca-bundle.crt || pacman -S --noconfirm mingw-w64-@@ARCH@@-ca-certificates; mkdir -p /usr/src && cd /usr/src && for project in MINGW-packages MSYS2-packages build-extra; do mkdir -p $project && (cd $project && git init && git config core.autocrlf false && git remote add origin https://github.com/git-for-windows/$project); done; git clone -b @@GIT_BRANCH@@ -c core.autocrlf=false https://github.com/git-for-windows/git && cd git && make install; bash --login -i"
7984

8085
@IF ERRORLEVEL 1 PAUSE

0 commit comments

Comments
 (0)