feat: Leiningen 2.2.0

- Automating Clojure projects without setting your hair on fire
This commit is contained in:
Iristyle
2013-06-06 07:55:30 -04:00
parent 33cd5478b5
commit 22089e33e1
5 changed files with 90 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
$package = 'Leiningen'
$version = '2.2.0'
try {
$url = "https://raw.github.com/technomancy/leiningen/$version/bin/lein.bat"
$batDir = Join-Path $Env:ChocolateyInstall 'bin'
$lein = Join-Path $batDir 'lein.bat'
Write-Host "Downloading from $url"
$client = New-Object Net.WebClient
$client.DownloadFile($url, $lein)
Write-Host "Download from $url complete"
Write-Host "Executing bootstrap script from $batDir"
# $batDir is already in PATH
lein self-install
lein
lein version
Write-ChocolateySuccess $package
} catch {
Write-ChocolateyFailure $package "$($_.Exception.Message)"
throw
}