-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathprepare_embedded_benchmarks.ps1
15 lines (13 loc) · 1.76 KB
/
prepare_embedded_benchmarks.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if ($args[0] -eq "-s") {
(Get-Content -Path .\SurrealDb.Embedded.InMemory\SurrealDb.Embedded.InMemory.csproj) -replace 'PropertyGroup Label="Constants" Condition="false"', 'PropertyGroup Label="Constants" Condition="true"' | Set-Content -Path .\SurrealDb.Embedded.InMemory\SurrealDb.Embedded.InMemory.csproj
(Get-Content -Path .\SurrealDb.Embedded.RocksDb\SurrealDb.Embedded.RocksDb.csproj) -replace 'PropertyGroup Label="Constants" Condition="false"', 'PropertyGroup Label="Constants" Condition="true"' | Set-Content -Path .\SurrealDb.Embedded.RocksDb\SurrealDb.Embedded.RocksDb.csproj
(Get-Content -Path .\SurrealDb.Embedded.SurrealKv\SurrealDb.Embedded.SurrealKv.csproj) -replace 'PropertyGroup Label="Constants" Condition="false"', 'PropertyGroup Label="Constants" Condition="true"' | Set-Content -Path .\SurrealDb.Embedded.SurrealKv\SurrealDb.Embedded.SurrealKv.csproj
exit 0
}
if ($args[0] -eq "-e") {
(Get-Content -Path .\SurrealDb.Embedded.InMemory\SurrealDb.Embedded.InMemory.csproj) -replace 'PropertyGroup Label="Constants" Condition="true"', 'PropertyGroup Label="Constants" Condition="false"' | Set-Content -Path .\SurrealDb.Embedded.InMemory\SurrealDb.Embedded.InMemory.csproj
(Get-Content -Path .\SurrealDb.Embedded.RocksDb\SurrealDb.Embedded.RocksDb.csproj) -replace 'PropertyGroup Label="Constants" Condition="true"', 'PropertyGroup Label="Constants" Condition="false"' | Set-Content -Path .\SurrealDb.Embedded.RocksDb\SurrealDb.Embedded.RocksDb.csproj
(Get-Content -Path .\SurrealDb.Embedded.SurrealKv\SurrealDb.Embedded.SurrealKv.csproj) -replace 'PropertyGroup Label="Constants" Condition="true"', 'PropertyGroup Label="Constants" Condition="false"' | Set-Content -Path .\SurrealDb.Embedded.SurrealKv\SurrealDb.Embedded.SurrealKv.csproj
exit 0
}
exit 1