Added a script that only bumps the commit hash in version.h

This commit is contained in:
casey langen 2020-11-01 00:12:10 -07:00
parent 9d695f8a9b
commit 54cc781235

View File

@ -0,0 +1,5 @@
#!/bin/sh
COMMIT_HASH=`git rev-parse --short HEAD 2> /dev/null | sed "s/\(.*\)/#\1/"`
sed -Ei.bak "s/(\s*)(#define VERSION_COMMIT_HASH )(.*)/\1\2\"${COMMIT_HASH}\"/g" src/musikcore/version.h
rm src/musikcore/version.h.bak