Stamp engine version in ENGINE/.engine_version.txt

This commit is contained in:
Avital Oliver
2013-02-22 14:03:05 -08:00
committed by David Glasser
parent 40df772498
commit 37de5dae21

View File

@@ -44,3 +44,10 @@ rm -rf "$TARGET_DIR"/examples/other
# mark directory with current git sha
git rev-parse HEAD > "$TARGET_DIR/.git_version.txt"
# generate engine version: directory hash that depends only on file
# contents but nothing else, eg modification time
echo -n "Computing engine version... "
ENGINE_VERSION=$("$TARGET_DIR"/tools/admin/hash-dir.sh)
echo $ENGINE_VERSION
echo "$ENGINE_VERSION" > "$TARGET_DIR/.engine_version.txt"