lr/update_ver.sh
2023-12-20 11:07:31 -06:00

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 $*