forked from microsoft/AzureKeyVaultExplorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.cmd
54 lines (41 loc) · 1.33 KB
/
init.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@echo off
REM Copyright (c) Microsoft Corporation. All rights reserved.
REM Licensed under the MIT License. See License.txt in the project root for license information.
REM
REM Setup minimal command line environment, based on the root location
REM
set RepoRoot=%~dp0
REM
REM Aliases
REM
doskey root=pushd "%RepoRoot%"
set NUGET_EXE_PATH="%~dp0.init\nuget\nuget.exe"
doskey nuget=%NUGET_EXE_PATH% $*
set MSBUILD_BASE_ARGS=/v:minimal /fl /flp:verbosity=normal /m /p:Platform=x64
doskey bz=msbuild %MSBUILD_BASE_ARGS% $*
doskey br=msbuild %MSBUILD_BASE_ARGS% /p:Configuration=Release $*
doskey bzr=msbuild %MSBUILD_BASE_ARGS% /p:BuildRelease=true $*
doskey bc=msbuild %MSBUILD_BASE_ARGS% /p:BuildRelease=true /t:Clean $*
REM NuGet package build
doskey bp=%~dp0.init\nuget\bp.cmd $*
REM
REM Git configuration
REM
git config include.path "%~dp0.gitconfig"
REM
REM NuGet push macro
REM
doskey nugetpush=%~dp0.init\nuget\nugetpush.cmd
set NUGET_CREDENTIALPROVIDERS_PATH=%~dp0.packages
REM
REM Invoke the main initialization script
REM
powershell -ExecutionPolicy Unrestricted -Command "iex \"^& '%~dp0\.init\init.ps1'\""
REM
REM Run custom environment init script for the repository (if any)
REM
if EXIST "%RepoRoot%\init.custom.cmd" (
call "%RepoRoot%\init.custom.cmd"
) else (
echo .
)