mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2025-01-24 17:31:13 +00:00
6 lines
179 B
Bash
Executable file
6 lines
179 B
Bash
Executable file
#!/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
|