forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buildsys: embed the current git commit id(or tag) to ctags binary
If configure is used for building and building is done in a git repository, git commit id is embedded to ctags executable (as before). The id can be seen in the output of `ctags --version' or in __TAG_PROGRAM_VERSION pseudo tag in a tags file. If ctags built on a platform where configure is not used, the id is set to 0. If ctags at the outside of a git repository, the id is set to 0. This feature will be used in regression test I'm designing now. For tagged version, embed the tag instead of commit id. Suggested by @k-takata. Signed-off-by: Masatake YAMATO <[email protected]>
- Loading branch information
Showing
11 changed files
with
74 additions
and
16 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 |
---|---|---|
|
@@ -46,6 +46,7 @@ mkinstalldirs | |
perf.data* | ||
readtags | ||
readtags.exe | ||
repoinfo.h | ||
respmvc | ||
stamp-h1 | ||
STDERR.* | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "general.h" | ||
#include "ctags.h" | ||
#ifdef HAVE_REPOINFO_H | ||
#include "main/repoinfo.h" | ||
#else | ||
#define CTAGS_REPOINFO ((char*)0) | ||
#endif | ||
const char* ctags_repoinfo = CTAGS_REPOINFO; |
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,4 @@ | ||
#!/bin/sh | ||
rinfo=`git describe --tag --exact-match HEAD 2> /dev/null || git rev-parse --short HEAD` | ||
echo "#define CTAGS_REPOINFO \"${rinfo}\"" | ||
|
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