Skip to content

Commit

Permalink
fix .gitignore and add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
kodebach committed Oct 2, 2020
1 parent 74d7229 commit 6d9be23
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#ignore all build directories of cmake
build*/
cmake-build*/
!scripts/build/

#ignore ctags + gdb history files
.ctags
Expand Down
31 changes: 31 additions & 0 deletions scripts/build/filter-coverage.awk.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/awk

# Filter absolute paths from coverage data
#
# Copied from
# http://stackoverflow.com/questions/3163364/excluding-certain-functions-from-gcov-lcov-coverage-results
#

BEGIN {
record=""
}

/^SF:/ {
if (match ($0, "@COVERAGE_PREFIX@")) {
doprint = 1
} else {
doprint = 0
}
}

/^end_of_record$/ {
if ( doprint ) {
print record $0
}
record = ""
next
}

{
record=record $0 "\n"
}
19 changes: 19 additions & 0 deletions scripts/build/run_check_release_notes
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

git diff origin/master -- doc/news/_preparation_next_release.md | egrep "^\+.+_\(.+\)_"
if [ $? != "0" ]; then
linesChanged=$(git diff --numstat origin/master -- doc/news/_preparation_next_release.md | cut -f1)
if [ -n "$linesChanged" ] && [ "$linesChanged" -ge "5" ]; then
echo "We assume that you know what you are doing."
exit 0
fi
echo "The release notes were not extended correctly (with $linesChanged lines changed)."
echo "Please make sure you add at least one line describing your contribution followed"
echo "by the text _(your name)_."
echo ""
echo "For example, if Sandra Power fixed a typo, she adds to doc/news/_preparation_next_release.md:"
echo "- typo fixed _(Sandra Power)_"
echo ""
echo "Similar contributions might be summarized shortly before the release."
exit 1
fi

0 comments on commit 6d9be23

Please sign in to comment.