Skip to content

Commit

Permalink
Merge pull request #7 from metaindu/prep-release
Browse files Browse the repository at this point in the history
Prep release
  • Loading branch information
izrik authored Jul 16, 2021
2 parents df97092 + 4b4bd66 commit 75884d1
Show file tree
Hide file tree
Showing 12 changed files with 141 additions and 45 deletions.
2 changes: 1 addition & 1 deletion CatmullRomSpline.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/*
* MetaphysicsIndustries.Solus
* Copyright (C) 2015-2021 Metaphysics Industries, Inc., Richard Sartor
* Copyright (C) 2006-2021 Metaphysics Industries, Inc., Richard Sartor
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion MemoryImage.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/*
* MetaphysicsIndustries.Solus
* Copyright (C) 2016-2021 Metaphysics Industries, Inc., Richard Sartor
* Copyright (C) 2006-2021 Metaphysics Industries, Inc., Richard Sartor
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 2 additions & 0 deletions MetaphysicsIndustries.Solus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@
<ItemGroup>
<Content Include=".gitignore" />
<Content Include=".gitmodules" />
<Content Include="MetaphysicsIndustries.Solus.nuspec" />
<Content Include="release.sh" />
<Content Include="render_grammar.sh" />
<Content Include="todo.txt" />
</ItemGroup>
Expand Down
52 changes: 52 additions & 0 deletions MetaphysicsIndustries.Solus.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
MetaphysicsIndustries.Solus
Copyright (C) 2008-2021 Metaphysics Industries, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
-->

<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MetaphysicsIndustries.Solus</id>
<version>$version$</version>
<title>MetaphysicsIndustries.Solus</title>
<authors>izrik,metaindu</authors>
<owners>izrik,metaindu</owners>
<license type="expression">LGPL-3.0-or-later</license>
<projectUrl>https://github.com/metaindu/MetaphysicsIndustries.Solus</projectUrl>
<!-- TODO: <icon>images/logo.png</icon> -->
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Mathematics system</description>
<releaseNotes>Initial release</releaseNotes>
<copyright>Copyright 2021 izrik and Metaphysics Industries, Inc.</copyright>
<tags>math numeric algebra</tags>
<dependencies>
<group>
<dependency id="MetaphysicsIndustries.Giza" version="0.2.0" />
</group>
<group targetFramework=".NETFramework4.0" />
</dependencies>
<frameworkAssemblies>
<frameworkAssembly assemblyName="System" targetFramework="" />
</frameworkAssemblies>
</metadata>
<files>
<file src="bin/Debug/MetaphysicsIndustries.Solus.dll" target="lib/net40" />
<file src="bin/Debug/MetaphysicsIndustries.Solus.pdb" target="lib/net40" />
</files>
</package>
2 changes: 1 addition & 1 deletion OperationPrecedence.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/*
* MetaphysicsIndustries.Solus
* Copyright (C) 2007-2021 Metaphysics Industries, Inc., Richard Sartor
* Copyright (C) 2006-2021 Metaphysics Industries, Inc., Richard Sartor
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
30 changes: 4 additions & 26 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/*
* MetaphysicsIndustries.Solus
* Copyright (C) 2008-2021 Metaphysics Industries, Inc., Richard Sartor
* Copyright (C) 2006-2021 Metaphysics Industries, Inc., Richard Sartor
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand All @@ -21,37 +21,15 @@
*/

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("MetaphysicsIndustries.Solus")]
[assembly: AssemblyDescription("Mathematics Library")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Metaphysics Industries, Inc.")]
[assembly: AssemblyProduct("MetaphysicsIndustries.Solus")]
[assembly: AssemblyCopyright("Copyright © Metaphysics Industries, Inc. 2008-2021")]
[assembly: AssemblyCopyright("Copyright © Metaphysics Industries, Inc. 2006-2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("e321c8b4-2f23-479b-8811-644ef3ac763b")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("0.1")]
[assembly: AssemblyFileVersion("0.1.0.0")]
2 changes: 1 addition & 1 deletion STuple.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/*
* MetaphysicsIndustries.Solus
* Copyright (C) 2014-2021 Metaphysics Industries, Inc., Richard Sartor
* Copyright (C) 2006-2021 Metaphysics Industries, Inc., Richard Sartor
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion SolusEngine.Eval.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/*
* MetaphysicsIndustries.Solus
* Copyright (C) 2010-2021 Metaphysics Industries, Inc., Richard Sartor
* Copyright (C) 2006-2021 Metaphysics Industries, Inc., Richard Sartor
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion SolusEngine.Statistics.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/*
* MetaphysicsIndustries.Solus
* Copyright (C) 2008-2021 Metaphysics Industries, Inc., Richard Sartor
* Copyright (C) 2006-2021 Metaphysics Industries, Inc., Richard Sartor
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
74 changes: 74 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#!/bin/bash

# MetaphysicsIndustries.Solus
# Copyright (C) 2006-2021 Metaphysics Industries, Inc., Richard Sartor
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 3 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
# USA

TAG="$1"

if [ "$TAG" = "" ]
then
TAG=$TRAVIS_TAG
fi

if [ "$TAG" = "" ]
then
echo 'No tag given. Package will not be created.'
exit 1
fi

VERSION=`echo "$TAG" | perl -ne 'print /^v(\d+\.\d+(?:\.\d+(?:\.\d+)?)?)$/'`
if [ "$VERSION" = "" ];
then
echo 'Wrong version format. Package will not be created.'
exit 1
fi

AVERSION=`grep AssemblyVersion Properties/AssemblyInfo.cs | perl -npe 's/^.*?\"//;s/\".*$//'`
if [ "$VERSION" != "$AVERSION" ]
then
echo "Tag doesn't match assembly version ($VERSION != $AVERSION). Package will not be created."
exit 1
fi

DVERSION=`echo "$VERSION" | perl -ne 'print /^(\d+\.\d+\.\d+(?:\.\d+)?)/'`
if [ "$DVERSION" = "" ];
then
DVERSION="${VERSION}.0"
echo "Adjusting version to '$DVERSION'."
else
DVERSION="$VERSION"
fi

echo 'Creating the nuget package...'
if ! nuget pack MetaphysicsIndustries.Solus.nuspec -Properties version=$DVERSION ; then
echo 'Error creating the package. The package will not be uploaded.'
exit 1
fi

if [ -z "$NUGET_API_KEY" ]; then
echo 'No Api Key provided. The package will not be uploaded. Please set the $NUGET_API_KEY variable.'
exit 1
fi

echo 'Uploading the package to nuget...'
if ! nuget push MetaphysicsIndustries.Solus.$DVERSION.nupkg -Source nuget.org -ApiKey $NUGET_API_KEY ; then
echo 'Error uploading the package. Quitting.'
exit 1
fi

echo 'Done.'
15 changes: 3 additions & 12 deletions solus/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,15 @@
*/

using System.Reflection;
using System.Runtime.CompilerServices;

// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("solus")]
[assembly: AssemblyDescription("Mathematics command-line program")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Metaphysics Industries, Inc.")]
[assembly: AssemblyProduct("MetaphysicsIndustries.Giza")]
[assembly: AssemblyProduct("solus")]
[assembly: AssemblyCopyright("Copyright © Metaphysics Industries, Inc. 2006-2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
[assembly: AssemblyVersion("1.0.*")]
// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("")]

[assembly: AssemblyVersion("0.1")]
[assembly: AssemblyFileVersion("0.1.0.0")]
1 change: 0 additions & 1 deletion todo.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
update version number
create nuget package

0 comments on commit 75884d1

Please sign in to comment.