Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #33 from paulbouwer/master
Browse files Browse the repository at this point in the history
Issue #32 - Release 0.3.6
  • Loading branch information
paulbouwer committed Feb 7, 2015
2 parents 20f2d21 + 01a4931 commit a872662
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,28 @@

scriptcs version manager

[![Latest Release](http://img.shields.io/badge/svm-0.3.5-blue.svg?style=flat-square)](https://github.com/scriptcs-contrib/svm/releases/tag/v0.3.5)
[![Latest Release](http://img.shields.io/badge/svm-0.3.6-blue.svg?style=flat-square)](https://github.com/scriptcs-contrib/svm/releases/tag/v0.3.6)

svm is a cross platform version manager for [scriptcs](http://scriptcs.net/ "scriptcs makes it easy to write and execute C# with a simple text editor.") available on Windows, Mac OS X and Linux. This work and implementation was inspired by [rbenv](https://github.com/sstephenson/rbenv), [rvm](https://github.com/wayneeseguin/rvm), [kvm](https://github.com/aspnet/KRuntime/tree/dev/setup) and [nvm](https://github.com/creationix/nvm).

**Install scriptcs version**

```
> svm install 0.13.2
```

**Use scriptcs version**

```
> svm use 0.13.2
```

**List installed scriptcs versions**

```
> svm list
scriptcs version manager - 0.3.5
scriptcs version manager - 0.3.6
The following scriptcs versions are installed:
Expand Down
6 changes: 3 additions & 3 deletions install/installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ function Install-SvmPackage
$destination.CopyHere($zipFile.items(), 0x14) #0x4 = don't show UI, 0x10 = overwrite files

# Only copy Windows specific contents into the install folder
$zipFolderToExtract = [System.IO.Path]::Combine($unzipFolder, 'svm-0.3.5', 'src', 'bin')
$zipFolderToExtract = [System.IO.Path]::Combine($unzipFolder, 'svm-0.3.6', 'src', 'bin')
Remove-Item -Path $([System.IO.Path]::Combine($zipFolderToExtract, 'svm'))
Copy-Item -Path $zipFolderToExtract -Recurse -Destination $installPath
$zipFolderToExtract = [System.IO.Path]::Combine($unzipFolder, 'svm-0.3.5', 'src', 'shims')
$zipFolderToExtract = [System.IO.Path]::Combine($unzipFolder, 'svm-0.3.6', 'src', 'shims')
Remove-Item -Path $([System.IO.Path]::Combine($zipFolderToExtract, 'scriptcs'))
Copy-Item -Path $zipFolderToExtract -Recurse -Destination $installPath

Expand Down Expand Up @@ -119,7 +119,7 @@ function Configure-Environment
Write-TitleMessage "scriptcs version manager - installer"

$installPath = $userSvmPath
$url = "https://github.com/scriptcs-contrib/svm/archive/v0.3.5.zip"
$url = "https://github.com/scriptcs-contrib/svm/archive/v0.3.6.zip"
$downloadPath = [System.IO.Path]::Combine($env:TEMP, [Guid]::NewGuid(), 'svm-install.zip')

New-SvmInstallLocation $installPath
Expand Down
6 changes: 3 additions & 3 deletions install/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ _svminstaller_install_package() {

_svm_info_message "Installing svm to '$install_path'."

unzip -j "$download_path" "svm-0.3.5/src/bin/*" -d "$install_path/bin" > /dev/null 2>&1
unzip -j "$download_path" "svm-0.3.5/src/shims/*" -d "$install_path/shims" > /dev/null 2>&1
unzip -j "$download_path" "svm-0.3.6/src/bin/*" -d "$install_path/bin" > /dev/null 2>&1
unzip -j "$download_path" "svm-0.3.6/src/shims/*" -d "$install_path/shims" > /dev/null 2>&1
mkdir "$install_path/versions"

# remove Windows specific resources from installed package
Expand Down Expand Up @@ -136,7 +136,7 @@ _svminstaller_configure_environment() {
_svm_title_message "scriptcs version manager - installer"

svm_install_path="$USER_SVM_PATH"
svm_package_url="https://github.com/scriptcs-contrib/svm/archive/v0.3.5.zip"
svm_package_url="https://github.com/scriptcs-contrib/svm/archive/v0.3.6.zip"
svm_download_path="$TEMP_PATH/`uuidgen`/svm-install.zip"

_svminstaller_create_install_location "$svm_install_path"
Expand Down
2 changes: 1 addition & 1 deletion src/bin/svm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

#SVM_VERSION="{{VERSION}}"
SVM_VERSION="0.3.5"
SVM_VERSION="0.3.6"

SCRIPT_PATH="${BASH_SOURCE[0]%/*}" # /.svm/bin
SVM_PATH=${SCRIPT_PATH%/bin} # /.svm/
Expand Down
2 changes: 1 addition & 1 deletion src/bin/svm.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ param (
)

#$svmVersion = "{{VERSION}}"
$svmVersion = "0.3.5"
$svmVersion = "0.3.6"

$scriptPath = [System.IO.Path]::GetDirectoryName($myInvocation.MyCommand.Definition) # \.svm\bin
$svmPath = [System.IO.Directory]::GetParent($scriptPath).FullName # \.svm\
Expand Down

0 comments on commit a872662

Please sign in to comment.