#!/usr/bin/env shif[-z"${1}"]thenprintf"%s\n""Input the path to the file for writing the commit hash to."elseprintf"%s""#define GIT_SHA1 \"">$1if(command-v"git">/dev/null)thengitrev-parse--shortHEAD|tr-d'\n'>>$1fiprintf"%s\n""\"">>$1printf"%s\n""const char* g_GIT_SHA1 = GIT_SHA1;">>$1fi