taiko-web/tools/get_version.sh
LoveEevee 96b1ba4b04 Add git hooks to tools
- Place these in your .git/hooks/ directory
2020-03-17 06:13:36 +03:00

4 lines
206 B
Bash
Executable File

#!/bin/bash
toplevel=$( git rev-parse --show-toplevel )
git log -1 --pretty="format:{\"commit\": \"%H\", \"commit_short\": \"%h\", \"version\": \"%ad\"}" --date="format:%y.%m.%d" > "$toplevel/version.json"