11 lines
165 B
Bash
Executable File
11 lines
165 B
Bash
Executable File
#!/bin/sh
|
|
|
|
main()
|
|
{
|
|
local VERSION="$(git describe --abbrev=0 --tags)"
|
|
echo "#pragma once" > version.h
|
|
echo "#define VERSION \"$VERSION\"" >> version.h
|
|
}
|
|
|
|
main $*
|