From 2e59d177aab3c80a27bca60f5c312b87b325f454 Mon Sep 17 00:00:00 2001 From: Supergibbs Date: Fri, 26 Jun 2015 09:15:12 -0700 Subject: [PATCH] Cleaner version parsing Changed LESS to Less and author to Twitter, Inc. --- nuget/MyGet.ps1 | 5 ++--- nuget/bootstrap.less.nuspec | 6 +++--- nuget/bootstrap.nuspec | 4 ++-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/nuget/MyGet.ps1 b/nuget/MyGet.ps1 index b3d9c8f778..ad17dea91f 100644 --- a/nuget/MyGet.ps1 +++ b/nuget/MyGet.ps1 @@ -1,8 +1,7 @@ $nuget = $env:NuGet -#parse the version number out of the Jekyll _config.yml -$yaml = (Select-String $env:SourcesPath\_config.yml -pattern "current_version").ToString().Split(" "); -$bsversion = $yaml[$yaml.Length - 1] +#parse the version number out of package.json +$bsversion = ((Get-Content $env:SourcesPath\package.json) -join "`n" | ConvertFrom-Json).version #create packages & $nuget pack "nuget\bootstrap.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion diff --git a/nuget/bootstrap.less.nuspec b/nuget/bootstrap.less.nuspec index 72aba82feb..7d69099f3a 100644 --- a/nuget/bootstrap.less.nuspec +++ b/nuget/bootstrap.less.nuspec @@ -3,12 +3,12 @@ bootstrap.less 3.3 - Bootstrap LESS - Mark Otto,Jacob Thornton + Bootstrap Less + Twitter, Inc. bootstrap The most popular front-end framework for developing responsive, mobile first projects on the web. http://blog.getbootstrap.com - Bootstrap framework in LESS. Includes fonts and javascript + Bootstrap framework in Less. Includes fonts and JavaScript en-us http://getbootstrap.com http://getbootstrap.com/apple-touch-icon.png diff --git a/nuget/bootstrap.nuspec b/nuget/bootstrap.nuspec index 1dee303bc5..3f1e211f84 100644 --- a/nuget/bootstrap.nuspec +++ b/nuget/bootstrap.nuspec @@ -4,11 +4,11 @@ bootstrap 3.3 Bootstrap CSS - Mark Otto,Jacob Thornton + Twitter, Inc. bootstrap The most popular front-end framework for developing responsive, mobile first projects on the web. http://blog.getbootstrap.com - Bootstrap framework in CSS. Includes fonts and javascript + Bootstrap framework in CSS. Includes fonts and JavaScript en-us http://getbootstrap.com http://getbootstrap.com/apple-touch-icon.png