mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-12 20:27:53 +00:00
[all] added pre-commit script and VERSION
This script belongs in .git/hooks/ to bump the version each commit.
This commit is contained in:
parent
db398d41a0
commit
3d136a28a0
3 changed files with 9 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
a12-110-g7cbaf8b5be+1
|
||||
a12-111-gdb398d41a0+1
|
|
@ -37,7 +37,7 @@ pkg_check_modules(PKGCONFIG REQUIRED
|
|||
)
|
||||
|
||||
execute_process(
|
||||
COMMAND git describe --always --long --dirty --abbrev=10 --tags
|
||||
COMMAND cat ../VERSION
|
||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE BUILD_VERSION
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
|
|
7
pre-commit
Executable file
7
pre-commit
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
(
|
||||
git describe --always --long --abbrev=10 --tags | tr -d '\n'
|
||||
echo -n '+1'
|
||||
) > VERSION
|
||||
git add VERSION
|
Loading…
Reference in a new issue