Browse Source

Build: fix regexes to propagate release notes into project file

build
Christoph Ruegg 9 years ago
parent
commit
2d92e30390
  1. 10
      RELEASENOTES.md
  2. 9
      build/build-framework.fsx
  3. 5
      src/FSharp/FSharp.fsproj
  4. 5
      src/Numerics/Numerics.csproj

10
RELEASENOTES.md

@ -1,13 +1,7 @@
### 4.0.0-alpha03 - 2017-12-26
* BUG: Ode Solver: fix typo in the Runge-Kutta solvers on time-step handling.
* Sign with SHA256 instead of SHA1
### 4.0.0-alpha02 - 2017-11-30
* Fixed whitespace and line breaks in package and assembly description
* Assembly code signing (X.509)
### 4.0.0-alpha01 - 2017-11-26
* Prerelease to test .Net Standard support and establish dotnet SDK build automation
* Assembly code signing (X.509) using SHA2 (256)
* BUG: Ode Solver: fix typo in the Runge-Kutta solvers on time-step handling.
### 3.20.0 - 2017-07-15
* Optimization: non-linear optimization algorithms *~Scott Stephens, Erik Ovegard, bdodson, et al.*

9
build/build-framework.fsx

@ -101,6 +101,13 @@ let patchVersionInAssemblyInfo path (release:Release) =
AssemblyFileVersion = release.AssemblyVersion
AssemblyInformationalVersion = release.PackageVersion })
let private regexes_sl = new System.Collections.Generic.Dictionary<string, System.Text.RegularExpressions.Regex>()
let private getRegexSingleLine pattern =
match regexes_sl.TryGetValue pattern with
| true, regex -> regex
| _ -> (new System.Text.RegularExpressions.Regex(pattern, System.Text.RegularExpressions.RegexOptions.Singleline))
let regex_replace_singleline pattern (replacement : string) text = (getRegexSingleLine pattern).Replace(text, replacement)
let patchVersionInResource path (release:Release) =
ReplaceInFile
(regex_replace @"\d+\.\d+\.\d+\.\d+" release.AssemblyVersion
@ -118,7 +125,7 @@ let patchVersionInProjectFile path (release:Release) =
>> regex_replace """\<FileVersion\>.*\</FileVersion\>""" (sprintf """<FileVersion>%s</FileVersion>""" release.AssemblyVersion)
>> regex_replace """\<VersionPrefix\>.*\</VersionPrefix\>""" (sprintf """<VersionPrefix>%s</VersionPrefix>""" prefix)
>> regex_replace """\<VersionSuffix\>.*\</VersionSuffix\>""" (sprintf """<VersionSuffix>%s</VersionSuffix>""" suffix)
>> regex_replace """\<PackageReleaseNotes\>.*\</PackageReleaseNotes\>""" (sprintf """<PackageReleaseNotes>%s</PackageReleaseNotes>""" release.ReleaseNotes))
>> regex_replace_singleline """\<PackageReleaseNotes\>.*\</PackageReleaseNotes\>""" (sprintf """<PackageReleaseNotes>%s</PackageReleaseNotes>""" release.ReleaseNotes))
path
// --------------------------------------------------------------------------------------

5
src/FSharp/FSharp.fsproj

@ -22,8 +22,9 @@
<PackageLicenseUrl>https://numerics.mathdotnet.com/License.html</PackageLicenseUrl>
<PackageProjectUrl>https://numerics.mathdotnet.com/</PackageProjectUrl>
<PackageIconUrl>https://www.mathdotnet.com/images/MathNet128.png</PackageIconUrl>
<PackageReleaseNotes>Fixed whitespace and line breaks in package and assembly description
Assembly code signing (X.509)</PackageReleaseNotes>
<PackageReleaseNotes>Prerelease to test .Net Standard support and establish dotnet SDK build automation
Assembly code signing (X.509) using SHA2 (256)
BUG: Ode Solver: fix typo in the Runge-Kutta solvers on time-step handling.</PackageReleaseNotes>
<PackageTags>fsharp F# math numeric statistics probability integration interpolation regression solve fit linear algebra matrix fft</PackageTags>
<IsTool>false</IsTool>
<RepositoryUrl>https://github.com/mathnet/mathnet-numerics</RepositoryUrl>

5
src/Numerics/Numerics.csproj

@ -22,8 +22,9 @@
<PackageLicenseUrl>https://numerics.mathdotnet.com/License.html</PackageLicenseUrl>
<PackageProjectUrl>https://numerics.mathdotnet.com/</PackageProjectUrl>
<PackageIconUrl>https://www.mathdotnet.com/images/MathNet128.png</PackageIconUrl>
<PackageReleaseNotes>Fixed whitespace and line breaks in package and assembly description
Assembly code signing (X.509)</PackageReleaseNotes>
<PackageReleaseNotes>Prerelease to test .Net Standard support and establish dotnet SDK build automation
Assembly code signing (X.509) using SHA2 (256)
BUG: Ode Solver: fix typo in the Runge-Kutta solvers on time-step handling.</PackageReleaseNotes>
<PackageTags>math numeric statistics probability integration interpolation regression solve fit linear algebra matrix fft</PackageTags>
<IsTool>false</IsTool>
<RepositoryUrl>https://github.com/mathnet/mathnet-numerics</RepositoryUrl>

Loading…
Cancel
Save