-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial versioning infrastructure commit
- Loading branch information
1 parent
cb84abc
commit 388ca72
Showing
5 changed files
with
92 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Procedures for making a new RandBLAS release | ||
============================================ | ||
|
||
This file provides the procedures for releasing a new version of RandBLAS. The process involves defining a new release in the commit history, changing the default version that CMake reports if it can't detect Git, and deploying updated web documentation. | ||
|
||
# Defining a new release | ||
|
||
## Incrementing the MINOR version number | ||
|
||
## Incrementing the PATCH version number | ||
|
||
# Updating web docs | ||
|
||
## Updating web doc sources | ||
|
||
## ReadTheDocs deployment | ||
|
||
|
||
# Creating a new release on GitHub | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,57 @@ | ||
#ifndef RandBLAS_config_h | ||
#define RandBLAS_config_h | ||
|
||
#define RandBLAS_VERSION "@RandBLAS_VERSION@" | ||
#define RandBLAS_FULL_VERSION "@RandBLAS_FULL_VERSION@" | ||
#define RandBLAS_VERSION_MAJOR @RandBLAS_VERSION_MAJOR@ | ||
#define RandBLAS_VERSION_MINOR @RandBLAS_VERSION_MINOR@ | ||
#define RandBLAS_VERSION_PATCH @RandBLAS_VERSION_PATCH@ | ||
#define RandBLAS_COMMITS_SINCE_RELEASE @RandBLAS_COMMITS_SINCE_RELEASE@ | ||
#define RandBLAS_COMMIT_HASH "@RandBLAS_COMMIT_HASH@" | ||
// ^ CMake sets those based on the output of a shell command executed in the RandBLAS git repo. | ||
// | ||
// The specific command is | ||
// git describe --tags --match "[0-9]*.[0-9]*.[0-9]*" | ||
// That should return a string of the form | ||
// [X].[Y].[Z]-[C]-g[H] | ||
// The contents of this string are interpreted as follows. | ||
// [X] is a nonnegative integer equal to the major version number | ||
// [Y] is a nonnegative integer equal to the minor version number | ||
// [Z] is a nonnegative integer equal to the patch number | ||
// [C] is a nonnegative integer equal to the number of commits since the version number was assigned | ||
// [H] is a short-form commit hash, indicating the state of repository's source code. | ||
// RandBLAS_FULL_VERSION is the entire string returned by the git command. | ||
// | ||
// If you want to use RandBLAS without using CMake, you need to create config.h manually. | ||
// We explain how to do that below. But first | ||
// | ||
// DISCLAIMER: if you're looking at a config.h file actually generated by CMake parsing | ||
// this config.h.in file, then the instructions below will mostly look like nonsense. | ||
// This is because CMake will have performed string substitution on the original | ||
// comments as given in config.h.in. | ||
// | ||
// Start by making a copy of this config.h.in file and giving it the name config.h. | ||
// From there, substitute every expression the form @X@ with a value based on the | ||
// ``git describe`` command. For example, if ``git describe``returned 0.1.0-456-gcb84abc, | ||
// then your config.h file would make the substitutions | ||
// | ||
// @RandBLAS_FULL_VERSION@ --> 0.1.0-456-gcb84abc | ||
// @RandBLAS_VERSION_MAJOR@ --> 0 | ||
// @RandBLAS_VERSION_MINOR@ --> 1 | ||
// @RandBLAS_VERSION_PATCH@ --> 0 | ||
// @RandBLAS_COMMITS_SINCE_RELEASE@ --> 456 | ||
// @RandBLAS_COMMIT_HASH@ --> cb84abc | ||
// | ||
|
||
#cmakedefine RandBLAS_HAS_OpenMP | ||
// ^ CMake determines whether or not to #define RandBLAS_HAS_OpenMP | ||
// | ||
// If you don't want to use CMake, then your config.h file should | ||
// either delete that line (if you aren't linking to OpenMP) or | ||
// it should replace it with | ||
// | ||
// #define RandBLAS_HAS_OpenMP | ||
// | ||
// if you are linking to OpenMP. | ||
// | ||
|
||
#endif |