aboutsummaryrefslogtreecommitdiffstats
path: root/run_tree.ps1
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-05-18 12:41:08 -0300
committerGitHub <noreply@github.com>2026-05-18 12:41:08 -0300
commitf9097a0562ea8b40d40a19059578a9280b945de4 (patch)
tree67907194b90977758c6b024809eb887a44601935 /run_tree.ps1
parentd39b1433e2ed754640049d04462f6a151bce7d14 (diff)
downloadSakura-f9097a0562ea8b40d40a19059578a9280b945de4.tar.gz
Sakura-f9097a0562ea8b40d40a19059578a9280b945de4.zip
cleanup root
Diffstat (limited to '')
-rw-r--r--run_tree.ps138
1 files changed, 0 insertions, 38 deletions
diff --git a/run_tree.ps1 b/run_tree.ps1
deleted file mode 100644
index 7f74bac..0000000
--- a/run_tree.ps1
+++ /dev/null
@@ -1,38 +0,0 @@
-param(
- [switch]$NoRun
-)
-
-$ErrorActionPreference = "Stop"
-
-$repoRoot = $PSScriptRoot
-$projectName = Split-Path -Leaf $repoRoot
-
-Push-Location $repoRoot
-try {
- (& opam env) -split '\r?\n' | ForEach-Object {
- if ($_ -ne "") {
- Invoke-Expression $_
- }
- }
-
- dune build shared/shabptree/sakura_shabptree.dll bin/tree.exe
-
- $dll = @(
- Get-ChildItem -Path $repoRoot -Filter sakura_shabptree.dll -Recurse -ErrorAction SilentlyContinue
- Get-ChildItem -Path (Join-Path $repoRoot "..") -Filter sakura_shabptree.dll -Recurse -ErrorAction SilentlyContinue |
- Where-Object { $_.FullName -like "*\_build\*\$projectName\shared\shabptree\sakura_shabptree.dll" }
- ) | Select-Object -First 1
-
- if ($null -eq $dll) {
- throw "Could not find built sakura_shabptree.dll"
- }
-
- $env:SAKURA_BPLUSTREE_DLL = $dll.FullName
-
- if (-not $NoRun) {
- dune exec bin/tree.exe
- }
-}
-finally {
- Pop-Location
-}