-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clone.cmd
36 lines (26 loc) · 865 Bytes
/
.clone.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
:: Prepare temp for cloning
set CLONE_DIR=Janda%RANDOM%
cd "%TEMP%"
mkdir %CLONE_DIR%
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%
cd %CLONE_DIR%
:: Clone and pack Janda.Dot.CLI
call :git_clone Janda.Dot.CLI
cd Janda.Dot.CLI
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%
call .pack
cd ..
:: Clone and pack Janda.Dot packages
mkdir Janda.Dot.Packages
cd Janda.Dot.Packages
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%
set DOT_PACKAGES=Janda.Dot.Console Janda.Dot.Nuget Janda.Dot.Obfuscar Janda.Dot.Serilog Janda.Dot.Service Janda.Dot.Version
for %%i in (%DOT_PACKAGES%) do call :git_clone %%i
call .foreach pack
goto :eof
:git_clone
:: Running git config --global http.sslbackend schannel would avoid using -c http.sslVerify=false
git -c http.sslVerify=false clone https://github.com/Jandini/%~1.git
if %ERRORLEVEL% neq 0 exit %ERRORLEVEL%
goto :eof