mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
14 lines
416 B
Bash
14 lines
416 B
Bash
#!/bin/bash
|
|
|
|
if [ ! -f renderdoc/data/resource.h ]; then
|
|
echo "This script should be run from the root of the checkout.";
|
|
echo "e.g. ./scripts/hash_version.sh";
|
|
exit;
|
|
fi
|
|
|
|
GIT_HASH=`git status > /dev/null 2>&1 && git rev-parse HEAD || echo NO_GIT_COMMIT_HASH_DEFINED`;
|
|
|
|
rm -f ver
|
|
sed "s/NO_GIT_COMMIT_HASH_DEFINED/$GIT_HASH/" renderdoc/api/replay/version.h > ver && mv ver renderdoc/api/replay/version.h
|
|
rm -f ver
|