mirror of
https://github.com/riuson/lcd-image-converter.git
synced 2026-02-20 01:21:28 +01:00
4 lines
261 B
Bash
Executable File
4 lines
261 B
Bash
Executable File
#/bin/sh
|
|
# argument $1 - path to project's directory
|
|
git --git-dir $1/.git log --pretty=format:"#define GIT_REVISION \"%H\\0\" %n#define GIT_REVISION_ABBR \"%h\\0\" %n#define GIT_COMMIT_ADATE \"%ai\\0\" %n#define GIT_COMMIT_AT %at" -1 > $1/resources/revision.h
|