-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] Add git revision to version information
- Start to use tags in the Git repository (like "v4.1") for versioning. The git revision is embedded into the header line of FORM outputs. When it is too long to fit in 79 characters, AC.LineLength is temporarily extended. (See also Issue #89) - "make" in "sources" directory always tries to update "version.h" by (1) "version.h.in" in tarball distributions, or (2) "scripts/git-version-gen.sh". - Similar in "doc/manual" and "doc/devref" directories, where "version.tex" is the target to be updated. Tarballs have the corresponding "version.tex.in". - Also for the version passed to AC_INIT() in "configure.ac". ".version" is stored in tarballs. When bumping the version by tagging, you may need to run "autoreconf -if". - Remove gendate.sh. - Remove DATE option in "make". - Revert HTMLCLEANFILES in 9a0f37f; htlatex invalidates .aux, .idx and .dvi files, so they need to be deleted. - "make latex2html" should work in "doc/manual" and "doc/devref". Unfortunately, the target "latex2html" is not recursive. Caveat: The build system doesn't work in tarballs without the configure script, e.g., files generated by "git archive" or from "Download ZIP" in GitHub. Should we allow builds in such cases?
- Loading branch information
Showing
16 changed files
with
620 additions
and
404 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
SUBDIRS = doc sources check | ||
|
||
EXTRA_DIST = README.md scripts/gendate.sh | ||
EXTRA_DIST = README.md | ||
|
||
dist-hook: | ||
$(DISTHOOK_VERSION) | ||
|
||
if FIXED_VERSION | ||
|
||
DISTHOOK_VERSION = \ | ||
cp "$(srcdir)/.version" "$(distdir)/.version" | ||
|
||
else | ||
|
||
DISTHOOK_VERSION = \ | ||
$(SHELL) "$(top_srcdir)/scripts/git-version-gen.sh" -C "$(srcdir)" -v -o "$(distdir)/.version" | ||
|
||
endif |
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
Oops, something went wrong.