Introduce the `mrel` script, that automates build of the Modules release
files and performs tests over these distribution files to guaranty their
correctness.
No more exclusion of project-related or installation documents from git
archive distribution. Enable makefile rules relative to Sphinx
documentation build even if not building from git repository. With
release distribution tarballs nothing changes as document is pre-built
in these archives. When working from a `git archive` export, these
Sphinx rules will help to build docs.
In case Modules is built from a `git archive` distribution, generate a
bare ChangeLog file only referring to the NEWS document. Always include
gitlog2changelog.py tool in distributions, but do not run it if not
building from a git repository.
Make `git archive` substitute .version.inc.in with commit hash, date and
refs. Compute MODULES_BUILD and MODULES_BUILD_DATE from these
informations in ./configure and Makefile if not working from git
repository.
Introduce a version.inc file sourced by Makefiles, that holds release
number and build information. Makefiles use these information to set
correct version number in manpages and modulecmd.tcl script.
version.inc is present in dist tarball. This file is generated from
version.inc.in file by main Makefile when working in git repository.
Release information are retrieved from the tags of the git repository.
Release number corresponds to last git tag set. Build number is the
result of the 'git describe' command: this information helps to know
from what git branch and commit the current build is made of.
These two directories were big with very site-specific content.
With this removal profile template example can now be integrated into
distribution tarball releases.
Build a distribution tarball from the git repository content with the
'dist' make target.
Add gitattributes to exclude git-specific and website-specific content
in distribution tarball. Also exclude user home directory template from
dist tarball as its content has a very large size and may not apply to
everybody.
Adapt parts of Makefiles to behave correctly when ran from a
distribution tarball, not from the git repository.