-
Notifications
You must be signed in to change notification settings - Fork 0
/
#compile.ps1
46 lines (43 loc) · 1.38 KB
/
#compile.ps1
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
$COQ_PATH="coqc"
$PREFIX=" -R . lambda_cap "
Function compile($name , $ignoredate) {
$Tab = [char]9
Write-Host("")
$dateA = (Get-Item ("$($name).v")).LastWriteTime
if (Test-Path "$($name).vo") {
$dateB = (Get-Item ("$($name).vo")).LastWriteTime
}
else {
$dateB = $dateA
}
if ($ignoredate) {
Write-Host("compiling " + $name)
cmd /c ($COQ_PATH + $PREFIX + $name)
return $TRUE
}
elseif ($dateA -ge $dateB) {
Write-Host("compiling " + $name)
cmd /c ($COQ_PATH + $PREFIX + $name)
return $TRUE
} else {
Write-Host($name + ".v $Tab modified before " + $name + ".vo")
return $FALSE
}
}
$ignoredate = $FALSE
$ignoredate = compile "UserTactics" $ignoredate
$ignoredate = compile "ListFacts" $ignoredate
$ignoredate = compile "MiscFacts" $ignoredate
$ignoredate = compile "Seq" $ignoredate
$ignoredate = compile "SSTS" $ignoredate
$ignoredate = compile "Label" $ignoredate
$ignoredate = compile "Formula" $ignoredate
$ignoredate = compile "Term" $ignoredate
$ignoredate = compile "Derivation" $ignoredate
$ignoredate = compile "CD_Derivation" $ignoredate
$ignoredate = compile "Encoding" $ignoredate
$ignoredate = compile "Soundness" $ignoredate
$ignoredate = compile "Completeness" $ignoredate
$ignoredate = compile "MainResult" $ignoredate
Write-Host("")
Read-Host 'Press Enter to continue...' | Out-Null