mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-12-11 04:51:07 +00:00
7 lines
179 B
Bash
7 lines
179 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
COMMIT="$(git rev-parse HEAD)"
|
||
|
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
||
|
echo "#define GIT_COMMIT \"${COMMIT}\"" > $1
|
||
|
echo "#define GIT_BRANCH \"${BRANCH}\"" >> $1
|