-
Notifications
You must be signed in to change notification settings - Fork 18
/
enlist.cmd
124 lines (109 loc) · 3.68 KB
/
enlist.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
@ECHO off
SETLOCAL
SET _P=%~dp0
:NextArg
IF /I "%1"=="wixbuildtools" (CALL :Enlist WixBuildTools& SET _E=1)
IF /I "%1"=="balutil" (CALL :Enlist balutil& SET _E=1)
IF /I "%1"=="bootstrappercore" (CALL :Enlist BootstrapperCore& SET _E=1)
IF /I "%1"=="burn" (CALL :Enlist burn& SET _E=1)
IF /I "%1"=="data" (CALL :Enlist Data& SET _E=1)
IF /I "%1"=="dutil" (CALL :Enlist dutil& SET _E=1)
IF /I "%1"=="extensibility" (CALL :Enlist Extensibility& SET _E=1)
IF /I "%1"=="dtf" (CALL :Enlist Dtf& SET _E=1)
IF /I "%1"=="converters" (CALL :Enlist Converters& SET _E=1)
IF /I "%1"=="core" (CALL :Enlist Core& SET _E=1)
IF /I "%1"=="core.native" (CALL :Enlist Core.Native& SET _E=1)
IF /I "%1"=="corenative" (CALL :Enlist Core.Native& SET _E=1)
IF /I "%1"=="doc" (CALL :Enlist doc& SET _E=1)
IF /I "%1"=="harvesters" (CALL :Enlist Harvesters& SET _E=1)
IF /I "%1"=="native" (CALL :Enlist Core.Native& SET _E=1)
IF /I "%1"=="tools" (CALL :Enlist Tools& SET _E=1)
if /I "%1"=="visualstudioextension" (CALL :Enlist VisualStudioExtension& SET _E=1)
if /I "%1"=="votive" (CALL :Enlist VisualStudioExtension& SET _E=1)
IF /I "%1"=="wcautil" (CALL :Enlist wcautil& SET _E=1)
IF /I "%1"=="bal" (CALL :Enlist Bal.wixext& SET _E=1)
IF /I "%1"=="complus" (CALL :Enlist ComPlus.wixext& SET _E=1)
IF /I "%1"=="dependency" (CALL :Enlist Dependency.wixext& SET _E=1)
IF /I "%1"=="difxapp" (CALL :Enlist DifxApp.wixext& SET _E=1)
IF /I "%1"=="directx" (CALL :Enlist DirectX.wixext& SET _E=1)
IF /I "%1"=="firewall" (CALL :Enlist Firewall.wixext& SET _E=1)
IF /I "%1"=="http" (CALL :Enlist Http.wixext& SET _E=1)
IF /I "%1"=="iis" (CALL :Enlist Iis.wixext& SET _E=1)
IF /I "%1"=="msmq" (CALL :Enlist Msmq.wixext& SET _E=1)
IF /I "%1"=="netfx" (CALL :Enlist NetFx.wixext& SET _E=1)
IF /I "%1"=="powershell" (CALL :Enlist PowerShell.wixext& SET _E=1)
IF /I "%1"=="sql" (CALL :Enlist Sql.wixext& SET _E=1)
IF /I "%1"=="tag" (CALL :Enlist Tag.wixext& SET _E=1)
IF /I "%1"=="ui" (CALL :Enlist UI.wixext& SET _E=1)
IF /I "%1"=="util" (CALL :Enlist Util.wixext& SET _E=1)
IF /I "%1"=="vs.wixext" (CALL :Enlist VisualStudio.wixext& SET _E=1)
IF /I "%1"=="setup" (CALL :Enlist Setup& SET _E=1)
IF "%1"=="" GOTO :Done
IF /I "%1"=="-?" GOTO :Syntax
IF /I "%1"=="/?" GOTO :Syntax
IF /I "%1"=="-h" GOTO :Syntax
IF /I "%1"=="/h" GOTO :Syntax
IF "%_E%"=="" ECHO Error: Unknown project name: %1
SHIFT
GOTO NextArg
:Done
IF "%_E%"=="" GOTO :NoProjects
IF NOT EXIST %_P%..\nuget.config COPY /Y %_P%nuget.config %_P%..\nuget.config
ECHO.
ENDLOCAL
GOTO :EOF
:Enlist
SET _C=%~dp0
PUSHD %_C%..
ECHO.
ECHO Enlisting %1 to: %CD%\%1 ...
IF NOT EXIST WixToolset.sln dotnet new sln -n WixToolset || GOTO :EnlistDone
git clone https://github.com/wixtoolset/%1.git || GOTO :EnlistDone
FOR /R %1 %%F IN (*.csproj) DO dotnet sln WixToolset.sln add %%~fF || GOTO :EnlistDone
FOR /R %1 %%F IN (*.vcxproj) DO echo "%%~fF" must be manually added to WixToolset.sln.
FOR /R %1 %%F IN (*.wixproj) DO echo "%%~fF" must be manually added to WixToolset.sln.
:EnlistDone
POPD
GOTO :EOF
:NoProjects
ECHO Error: You must specify at least one valid project to enlist.
ECHO.
:Syntax
ECHO Syntax: enlist project
ECHO.
ECHO Available projects:
ECHO balutil
ECHO BootstrapperCore
ECHO burn
ECHO Converters
ECHO Core
ECHO Core.Native
ECHO Data
ECHO Dtf
ECHO dutil
ECHO Extensibility
ECHO Harvesters
ECHO Setup
ECHO Tools
ECHO VisualStudioExtension
ECHO wcautil
ECHO WixBuildTools
ECHO.
ECHO Extension projects:
ECHO bal
ECHO complus
ECHO dependency
ECHO difxapp
ECHO directx
ECHO firewall
ECHO http
ECHO iis
ECHO msmq
ECHO netfx
ECHO powershell
ECHO sql
ECHO tag
ECHO ui
ECHO util
ECHO vs.wixext
ECHO.