This repository was archived by the owner on Mar 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version: Ensure "--version" and "version" display a commit id.
git-archive(1), as used by github.com, allows files to be modified "on-the-fly" as the archive file is generated. By configuring git-archive to write the commit id to file "commit_id.fmt", the build can be convinced (using the mandatory "clean-local" rule) to generate file "commit_id" from "commit_id.fmt". The value of "commit_id" is then passed via the compiler to the runtime to allow the latter to display a commit id when run with either "--version" or "version". Signed-off-by: James Hunt <[email protected]>
- Loading branch information
1 parent
8c0493d
commit c8eef53
Showing
3 changed files
with
14 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
commit_id.fmt export-subst | ||
.gitattributes export-ignore |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
$Format:%H$ |