mirror of
https://github.com/iwata/git-now.git
synced 2026-09-10 15:36:22 -04:00
25 lines
501 B
Batchfile
25 lines
501 B
Batchfile
@echo off
|
|
|
|
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
|
|
|
|
:copyshflags
|
|
set MSYS_BIN=%HOME%\bin
|
|
echo Installing git-now to "%MSYS_BIN%"
|
|
|
|
echo copy shFlags
|
|
copy %STARTUP_PATH%..\shFlags\src\shflags %MSYS_BIN%\gitnow-shFlags
|
|
|
|
:copygitnow
|
|
xcopy /EXCLUDE:%STARTUP_PATH%exclude.txt /D /Y %STARTUP_PATH%..\* %MSYS_BIN%
|