openofdm/get_git_rev.sh

12 lines
150 B
Bash
Raw Normal View History

2022-03-15 14:57:57 +00:00
#!/bin/bash
# xianjun.jiao@imec.be
if git log -1 > /dev/null 2>&1; then
GIT_REV=$(git log -1 --pretty=%h)
else
GIT_REV=ffffffff
fi
echo $GIT_REV