diff options
author | Luc Verhaegen <libv@skynet.be> | 2007-01-08 01:09:57 +0100 |
---|---|---|
committer | Luc Verhaegen <libv@skynet.be> | 2007-01-08 01:09:57 +0100 |
commit | 9bf02ccfaaf539684da17c32bb2c20c0fdc2a457 (patch) | |
tree | c1da50fbc5619673d3bd4209688804696dea2458 /git_version.sh | |
parent | 5ba8910e38581d01638bd118b63acb3d29944b0b (diff) |
Add first attempt at debian packaging.
* Properly handled package interdependencies.
* Proper copyright file.
* Package version depends on GIT SHAID.
* xserver-xorg-code version is generated at build time.
Diffstat (limited to 'git_version.sh')
-rwxr-xr-x | git_version.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/git_version.sh b/git_version.sh index ea597e6..67b42ef 100755 --- a/git_version.sh +++ b/git_version.sh @@ -2,6 +2,8 @@ # # Generate some basic versioning information which can be piped to a header. # +# Copyright (c) 2006-2007 Luc Verhaegen <libv@skynet.be> + echo "/*" echo " * Basic versioning gathered from the git repository." echo " */" @@ -19,9 +21,9 @@ if test "$git_tools" != ""; then echo "" # SHA-ID - git_shaid=`git-whatchanged | head -n1 | sed s/^diff-tree\ // | sed s/\ \(from\ \[0-9a-f\]*\.\.\.\)$//` + git_shaid=`git-whatchanged | head -n1 | sed s/^commit\ //` echo "/* Git SHA ID of last commit */" - echo "#define GIT_SHAID \"$git_shaid\"" + echo "#define GIT_SHAID \"${git_shaid:0:8}..\"" echo "" # Branch -- use git-status instead of git-branch |