mirror of
https://github.com/iwata/git-now.git
synced 2026-09-10 15:36:22 -04:00
Create install script for msysgit
This commit is contained in:
parent
cf51073018
commit
cc1b6360da
4
contrib/exclude.txt
Normal file
4
contrib/exclude.txt
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
.gitmodules
|
||||
Makefile
|
||||
README.mdown
|
||||
gitnow-shFlags
|
||||
23
contrib/msysgit-install.cmd
Normal file
23
contrib/msysgit-install.cmd
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
set STARTUP_PATH=%~d0%~p0
|
||||
if "%HOME%" == "" goto sethome
|
||||
goto makedir
|
||||
|
||||
:sethome
|
||||
echo set HOME variable
|
||||
set HOME=%UserProfile%
|
||||
|
||||
:makedir
|
||||
if exist %HOME%\bin goto :copyshflags
|
||||
echo make bin folder
|
||||
mkdir %HOME%\bin
|
||||
|
||||
set MSYS_BIN=%HOME%\bin
|
||||
|
||||
echo Installing git-now to "%MSYS_BIN%"
|
||||
|
||||
:copyshflags
|
||||
echo copy shFlags
|
||||
copy %STARTUP_PATH%..\shFlags\src\shflags %MSYS_BIN%\gitnow-shFlags
|
||||
|
||||
:copygitnow
|
||||
xcopy /EXCLUDE:%STARTUP_PATH%exclude.txt /D %STARTUP_PATH%..\* %MSYS_BIN%
|
||||
Loading…
Reference in a new issue