mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Added a script that only bumps the commit hash in version.h
This commit is contained in:
parent
9d695f8a9b
commit
54cc781235
5
script/update-version-hash.sh
Normal file
5
script/update-version-hash.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user