Skip to content

Commit

Permalink
Release version v0.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Tvedte committed Jun 18, 2024
1 parent e17c848 commit 07347fb
Show file tree
Hide file tree
Showing 37 changed files with 6,782 additions and 981 deletions.
27 changes: 27 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,30 @@ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


-----------------------------------------------------------------------------
https://github.com/martinus/unordered_dense
-----------------------------------------------------------------------------

MIT License

Copyright (c) 2022 Martin Leitner-Ankerl

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.5.0
v0.5.4-5-g5dfd516
24 changes: 19 additions & 5 deletions build-support/git_describe.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
# used for passing git-info to main.cpp via compiler flag in src/CMakeLists.txt
# GP-32810: If branch is production, suppress git-revision (--abbrev=0), and no --dirty

branch_name=$(git rev-parse --abbrev-ref HEAD)
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
branch_name=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)

if [ "$branch_name" == "production" ]; then
if [ ! -n "$branch_name" ] && [[ -f $script_dir/../VERSION ]]; then
# Not a git-repo (git rev-parse failed), but have VERSION file.
str=$(head -n1 $script_dir/../VERSION | tr -d '\n')

elif [ ! -n "$branch_name" ]; then
str="unknown"

elif [ "$branch_name" == "production" ] || [ "$branch_name" == "release" ]; then
# NB: 'release' is the default branch in fcs-gx repo.
#
# e.g. v0.4.0
str=$(git describe --always --tags --abbrev=0)
elif [ "$branch_name" == "develop" ]; then

elif [ "$branch_name" == "develop" ] || [ "$branch_name" == "main" ] || [ "$branch_name" == "HEAD" ]; then
# NB: 'HEAD' is the branch-name that ends up in the singularity build.
#
# e.g. v0.4.0-211-g2ee769ba-dirty
# https://semver.org/#spec-item-9
str=$(git describe --always --tags --dirty)
str=$(git describe --long --dirty)

else
# For feature-branches, capture the branch-name:
# e.g. v0.4.0-211-g2ee769ba-dirty+branch--task-capture-branch-name-in-git-describe-sh
# https://semver.org/#spec-item-10
alnum_branch_name=$(echo "$branch_name" | sed 's/[^a-zA-Z0-9]/-/g')
str=$(git describe --always --tags --dirty)"+branch--${alnum_branch_name}"
str=$(git describe --long --dirty)"+branch--${alnum_branch_name}"
fi

printf "\"$str\"" # output must be quoted
Loading

0 comments on commit 07347fb

Please sign in to comment.