forked from MindTouch/SGMLReader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.ps1
More file actions
28 lines (23 loc) · 719 Bytes
/
default.ps1
File metadata and controls
28 lines (23 loc) · 719 Bytes
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
properties {
$buildDir = ".\build"
$outputDir = $buildDir + "\lib\" + $framework
$out = $outputDir + "\SgmlReaderDll.dll"
$nunitDir = (gci -fi NUnit* .\packages).FullName
$nunit = (gci $nunitDir\Tools\nunit-console.exe)
}
task default -depends Compile, Clean
task Init -depends Clean {
mkdir $outputDir | out-null
}
task Compile -depends Init {
$sources = gci ".\sgmlreaderdll" -r -fi *.cs |% { $_.FullName }
csc /target:library /out:$out $sources /keyfile:.\sgmlreaderdll\sgmlreader.snk /resource:".\SgmlReader\Html.dtd,SgmlReaderDll.Html.dtd"
}
task Test -depends Compile {
. $nunit $out
}
task Clean {
if (test-path $outputDir) {
ri -r -fo $outputDir
}
}