Skip to content

Commit

Permalink
Remove crlf line endings, rely on autocrlf git setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmienk committed Dec 13, 2016
1 parent 3d91d8b commit 27161bf
Showing 1 changed file with 108 additions and 108 deletions.
216 changes: 108 additions & 108 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -1,108 +1,108 @@
REM ###########################################################################
REM # Copyright (c) 2014-2015 libbitcoin developers (see COPYING).
REM #
REM # GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
REM #
REM ###########################################################################
@echo off
SETLOCAL ENABLEEXTENSIONS
SET parent=%~dp0
SET path_base=%~1
SET nuget_pkg_path=%~1\..\nuget
SET msbuild_args=/verbosity:minimal /p:Platform=%~2 /p:Configuration=%~3

call :pending "Build initialized..."
IF NOT EXIST "%nuget_pkg_path%" (
call mkdir "%nuget_pkg_path%"
IF %ERRORLEVEL% NEQ 0 (
call :failure "mkdir %nuget_pkg_path% failed."
exit /b 1
)
)

call :bld_repo libbitcoin
IF %ERRORLEVEL% NEQ 0 (
call :failure "Building libbitcoin failed."
exit /b 1
)

call :success "Build complete."
exit /b 0



:init
call :pending "Initializing repository %~1/%~2/%~3..."
IF NOT EXIST "%path_base%\%~2" (
call git clone -q --branch=%~3 https://github.com/%~1/%~2 "%path_base%\%~2"
IF %ERRORLEVEL% NEQ 0 (
call :failure "git clone %~1/%~2 failed."
exit /b 1
)
) ELSE (
call :success "%path_base%\%~2 exists, assuming valid clone."
)

call :bld_proj %~2
IF %ERRORLEVEL% NEQ 0 (
call :failure "Building project %~2 failed."
exit /b 1
)
call :success "Initialization of %~1/%~2/%~3 complete."
exit /b 0

:bld_repo
call :pending "Building respository %~1..."
call :depends "%~1"
IF %ERRORLEVEL% NEQ 0 (
call :failure "Initializing dependencies %~1 failed."
exit /b 1
)
call cd /d "%path_base%\%~1\builds\msvc\vs2013"
call msbuild %msbuild_args% %~1.sln
IF %ERRORLEVEL% NEQ 0 (
call :failure "msbuild %msbuild_args% %~1.sln failed."
exit /b 1
)
call :success "Building repository %~1 execution complete."
call cd /d "%path_base%"
exit /b 0

:bld_proj
call :pending "Building respository project %~1..."
call :depends %~1
IF %ERRORLEVEL% NEQ 0 (
call :failure "Initializing dependencies %~1 failed."
exit /b 1
)
call cd /d "%path_base%\%~1\builds\msvc\vs2013"
call msbuild %msbuild_args% /target:%~1:Rebuild %~1.sln
IF %ERRORLEVEL% NEQ 0 (
call :failure "msbuildl %msbuild_args% /target:%~1:Rebuild %~1.sln"
exit /b 1
)
call :success "Building repository project %~1 execution complete."
call cd /d "%path_base%"
exit /b 0

:depends
call :pending "nuget restoring dependencies for %~1..."
call nuget restore "%path_base%\%~1\builds\msvc\vs2013\%~1.sln" -Outputdir "%nuget_pkg_path%"
IF %ERRORLEVEL% NEQ 0 (
call :failure "nuget restore failed."
exit /b 1
)
call :success "nuget restoration for %~1 complete."
exit /b 0

:pending
echo %~1
exit /b 0

:success
echo %~1
exit /b 0

:failure
echo %~1
exit /b 0
REM ###########################################################################
REM # Copyright (c) 2014-2015 libbitcoin developers (see COPYING).
REM #
REM # GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
REM #
REM ###########################################################################
@echo off
SETLOCAL ENABLEEXTENSIONS
SET parent=%~dp0
SET path_base=%~1
SET nuget_pkg_path=%~1\..\nuget
SET msbuild_args=/verbosity:minimal /p:Platform=%~2 /p:Configuration=%~3

call :pending "Build initialized..."
IF NOT EXIST "%nuget_pkg_path%" (
call mkdir "%nuget_pkg_path%"
IF %ERRORLEVEL% NEQ 0 (
call :failure "mkdir %nuget_pkg_path% failed."
exit /b 1
)
)

call :bld_repo libbitcoin
IF %ERRORLEVEL% NEQ 0 (
call :failure "Building libbitcoin failed."
exit /b 1
)

call :success "Build complete."
exit /b 0



:init
call :pending "Initializing repository %~1/%~2/%~3..."
IF NOT EXIST "%path_base%\%~2" (
call git clone -q --branch=%~3 https://github.com/%~1/%~2 "%path_base%\%~2"
IF %ERRORLEVEL% NEQ 0 (
call :failure "git clone %~1/%~2 failed."
exit /b 1
)
) ELSE (
call :success "%path_base%\%~2 exists, assuming valid clone."
)

call :bld_proj %~2
IF %ERRORLEVEL% NEQ 0 (
call :failure "Building project %~2 failed."
exit /b 1
)
call :success "Initialization of %~1/%~2/%~3 complete."
exit /b 0

:bld_repo
call :pending "Building respository %~1..."
call :depends "%~1"
IF %ERRORLEVEL% NEQ 0 (
call :failure "Initializing dependencies %~1 failed."
exit /b 1
)
call cd /d "%path_base%\%~1\builds\msvc\vs2013"
call msbuild %msbuild_args% %~1.sln
IF %ERRORLEVEL% NEQ 0 (
call :failure "msbuild %msbuild_args% %~1.sln failed."
exit /b 1
)
call :success "Building repository %~1 execution complete."
call cd /d "%path_base%"
exit /b 0

:bld_proj
call :pending "Building respository project %~1..."
call :depends %~1
IF %ERRORLEVEL% NEQ 0 (
call :failure "Initializing dependencies %~1 failed."
exit /b 1
)
call cd /d "%path_base%\%~1\builds\msvc\vs2013"
call msbuild %msbuild_args% /target:%~1:Rebuild %~1.sln
IF %ERRORLEVEL% NEQ 0 (
call :failure "msbuildl %msbuild_args% /target:%~1:Rebuild %~1.sln"
exit /b 1
)
call :success "Building repository project %~1 execution complete."
call cd /d "%path_base%"
exit /b 0

:depends
call :pending "nuget restoring dependencies for %~1..."
call nuget restore "%path_base%\%~1\builds\msvc\vs2013\%~1.sln" -Outputdir "%nuget_pkg_path%"
IF %ERRORLEVEL% NEQ 0 (
call :failure "nuget restore failed."
exit /b 1
)
call :success "nuget restoration for %~1 complete."
exit /b 0

:pending
echo %~1
exit /b 0

:success
echo %~1
exit /b 0

:failure
echo %~1
exit /b 0

0 comments on commit 27161bf

Please sign in to comment.