diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-07-09 22:44:13 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-07-09 22:44:13 -0400 |
commit | a00cc8c70d20f2f3429590b629d272c8db65b40f (patch) | |
tree | 6a90966d1a715c48db4ac35b891c46ef654f272f /git_version.sh | |
parent | df00639dbe262b8919bdf625f30d80e5b9b96346 (diff) | |
parent | 51a3785482396c9f653e3e7647945bfc24f7b160 (diff) | |
download | systemtap-steved-a00cc8c70d20f2f3429590b629d272c8db65b40f.tar.gz systemtap-steved-a00cc8c70d20f2f3429590b629d272c8db65b40f.tar.xz systemtap-steved-a00cc8c70d20f2f3429590b629d272c8db65b40f.zip |
Merge commit 'origin/master' into pr6429-comp-unwindsyms
* commit 'origin/master':
fix shutdown race condition for scripts that might exit during begin probes
Fix PR 6732: Add runtime/autoconf-real-parent.c check for task_struct field.
clarify dejagnu test case name for empty-struct changes
add changelog entries for last two changes
Add test suite for declaration resolution
Fix semantic error: empty struct
Add hack to support git 1.6 in git_version.sh
Sync latest fix for git_version.sh from RadeonHD's tree
Slightly cleanup code of translate.cxx
PR2111: add general blurbage to stapprobes.5 on syscalls tapset
Use `uname -rvm` for checking system compatibility. Generate
Add section to stapex manual page on how installed examples are documented.
Install examples, demos and samples.
Install tutorial and langref manuals.
Diffstat (limited to 'git_version.sh')
-rwxr-xr-x | git_version.sh | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/git_version.sh b/git_version.sh index 69eb0f24..50658970 100755 --- a/git_version.sh +++ b/git_version.sh @@ -155,6 +155,29 @@ cat<<EOF EOF +# Backwards compatibility hack for git 1.6.0 (and people running the +# latest pre-release version of git.) +# +# For now, we'll do this to support git 1.6, with minimal changes to +# the rest of this script, but no guarantees how long this will work. +# The hyphenated git-foo-bar names really are deprecated, and may +# disappear in the future as more of git gets rewritten as built-in C +# programs. Google summer of code students and other git developers +# are hard at work doing this, in order to make git more +# portable/usable for Windows users. As a result, some of the +# git-foo-bar programs, which will be moved to the exec-dir directory +# in git 1.6, may disappear altogether in the future. Hence the only +# truly safe and future-compatible way of running commands such as +# git-diff-files, git-rev-parse, etc., are "git diff-files" and +# "git rev-parse". Here endeth the git portability sermon, which +# I suspect will have as much effect as abstinence-only sex ed +# classes. :-) TYT, 2008-07-08 + +execdir=$(git --exec-path 2> /dev/null) +if test -n "$execdir"; then + PATH=$PATH:$execdir +fi + # Detect git tools (should work with old and new git versions) git_found=yes for git_tool in git-symbolic-ref git-rev-parse git-diff-files git-diff-index git @@ -314,7 +337,7 @@ int main(int argc, char *argv[]) const char *const prog = (idx)?(idx+1):(argv[0]); #ifdef PACKAGE_VERSION printf("%s: version %s, built from %s\n", prog, PACKAGE_VERSION, GIT_MESSAGE); -#elif defined(GIT_USED) +#elif defined(GIT_MESSAGE) printf("%s: built from %s\n", prog, GIT_MESSAGE); #endif return 0; |