Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (39 sloc) 1.433 kb
function Get-File-Exists-On-Path
{
param(
[string]$file
)
$results = ($Env:Path).Split(";") | Get-ChildItem -filter $file -erroraction silentlycontinue
$found = ($results -ne $null)
return $found
}
function Get-Git-Commit
{
if ((Get-File-Exists-On-Path "git.exe")){
$gitLog = git log --oneline -1
return $gitLog.Split(' ')[0]
}
else {
return "0000000"
}
}
function Delete-Sample-Data-For-Release
{
param([string]$sample_dir)
rd "$sample_dir\bin" -force -recurse -ErrorAction SilentlyContinue
rd "$sample_dir\obj" -force -recurse -ErrorAction SilentlyContinue
rd "$sample_dir\Servers\Shard1\Data" -force -recurse -ErrorAction SilentlyContinue
rd "$sample_dir\Servers\Shard2\Data" -force -recurse -ErrorAction SilentlyContinue
rd "$sample_dir\Servers\Shard1\Plugins" -force -recurse -ErrorAction SilentlyContinue
rd "$sample_dir\Servers\Shard2\Plugins" -force -recurse -ErrorAction SilentlyContinue
del "$sample_dir\Servers\Shard1\RavenDB.exe" -force -recurse -ErrorAction SilentlyContinue
del "$sample_dir\Servers\Shard2\RavenDB.exe" -force -recurse -ErrorAction SilentlyContinue
}
function Get-DependencyPackageFiles
{
param([string]$packageName, [string]$frameworkVersion = "net40")
$fullPackageName = Get-ChildItem "$base_dir\packages\$packageName.*" |
Sort-Object Name -Descending |
Select-Object -First 1
Return "$fullPackageName\lib\$frameworkVersion\*"
}
Jump to Line
Something went wrong with that request. Please try again.