mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
6 lines
223 B
Bash
6 lines
223 B
Bash
|
#!/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
|