You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
360 B
Bash
10 lines
360 B
Bash
#!/bin/bash
|
|
|
|
git describe --abbrev=8 --dirty --always > gitinfo.txt
|
|
git describe --abbrev=8 --always >> gitinfo.txt
|
|
git rev-parse --abbrev-ref HEAD >> gitinfo.txt
|
|
git describe --always --tags --dirty=-d | gawk 'NR==1{print $0}' >> gitinfo.txt
|
|
git rev-list HEAD | wc -l | tr -d ' ' >> gitinfo.txt
|
|
gawk -f gitinfo.awk < gitinfo.txt > gitdefs.h
|
|
rm -f gitinfo.txt
|