Commit 20d89501 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Documentation: added git commit id to the header

parent a18a38f9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -37,8 +37,10 @@ PROJECT_NAME = "Template Numerical Library"
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
# control system is used.
# We pass the value from the build script using an environment variable, see
# https://stackoverflow.com/a/54487043

PROJECT_NUMBER         = 0.1
PROJECT_NUMBER         = $(PROJECT_NUMBER)

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
+5 −1
Original line number Diff line number Diff line
@@ -30,8 +30,12 @@ done
# Remove existing html/ directory which may contain old files
rm -rf ./html/

# Assemble environment variables which are used in the Doxyfile
#PROJECT_NUMBER="version $(git branch --show-current):$(git log -1 --format="%h (%cd)")"
PROJECT_NUMBER="version $(git branch --show-current):$(git rev-parse --short HEAD)"

# Generate documentation
doxygen
PROJECT_NUMBER="$PROJECT_NUMBER" doxygen

# Install
if [[ "$INSTALL" == "yes" ]]; then