Roll calc_hash.sh into hash_version.sh (the only place that it's used)

This commit is contained in:
baldurk
2016-09-27 12:55:08 +02:00
parent 0729f5dc06
commit d39d2ed9dd
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -1,2 +0,0 @@
#!/bin/bash
git status > /dev/null 2>&1 && git rev-parse HEAD || echo NO_GIT_COMMIT_HASH_DEFINED
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/bash
GIT_HASH=`sh ./calc_hash.sh`;
GIT_HASH=`git status > /dev/null 2>&1 && git rev-parse HEAD || echo NO_GIT_COMMIT_HASH_DEFINED`;
rm -f ver
sed -b "s/NO_GIT_COMMIT_HASH_DEFINED/$GIT_HASH$1/" renderdoc/data/resource.h > ver && mv ver renderdoc/data/resource.h