diff options
author | Stefan Tauner <stefan.tauner@gmx.at> | 2017-10-01 16:41:35 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2017-10-05 10:39:25 +0000 |
commit | 9620912607d5e99650624f74545268bba0f310ca (patch) | |
tree | d5fdf853e610a0422e5c64284d68caf397a653a5 /util | |
parent | 2dc5d294004f5d3ec37cc7bfd5d49ce1a41bf215 (diff) | |
download | flashrom-9620912607d5e99650624f74545268bba0f310ca.tar.gz flashrom-9620912607d5e99650624f74545268bba0f310ca.tar.bz2 flashrom-9620912607d5e99650624f74545268bba0f310ca.zip |
fixup! Convert flashrom to git
- make version string generation independent of the actual VCS
used by not generating "unknown" in the makefile but letting
getrevision do that
- make hook installation independent of version string generation
since they have nothing to do with each other and there are no
synergies anymore
Change-Id: Iedc9df4c033a70447b8b1b65c83764c769b02c3f
Signed-off-by: Stefan Tauner <stefan.tauner@gmx.at>
Reviewed-on: https://review.coreboot.org/21827
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'util')
-rwxr-xr-x | util/getrevision.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/util/getrevision.sh b/util/getrevision.sh index e1580e5e..0f975462 100755 --- a/util/getrevision.sh +++ b/util/getrevision.sh @@ -131,13 +131,14 @@ timestamp() { # Retrieve local revision info. local_revision() { + local r if git_is_file_tracked "$1" ; then - local r=$(git describe $(git_last_commit "$1")) + r=$(git describe $(git_last_commit "$1")) if git_has_local_changes "$1" ; then r="$r-dirty" fi else - return ${EXIT_FAILURE} + r="unknown" fi echo "${r}" |