Skip to content
This repository has been archived by the owner. It is now read-only.

Remove version text, add toggleable debug info(with commit hash!) #1029

Merged
merged 3 commits into from Feb 12, 2021
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.

Always

Just for now

Prev
Fix sha1 on premake linux
  • Loading branch information
erorcun committed Feb 12, 2021
commit 8659b9d77c0a823f18a08fcea53a62dc29188529
@@ -331,7 +331,7 @@ project "re3"
prebuildcommands { '"%{prj.location}..\\printHash.bat" "%{prj.location}..\\src\\extras\\GitSHA1.cpp"' }

filter "platforms:not win*"
prebuildcommands { '"%{prj.location}../printHash.sh" "%{prj.location}../src/extras/GitSHA1.cpp"' }
prebuildcommands { '"%{prj.location}/../printHash.sh" "%{prj.location}/../src/extras/GitSHA1.cpp"' }

filter "platforms:win*glfw*"
staticruntime "off"
6 printHash.sh 100644 → 100755
@@ -1,12 +1,10 @@
#!/usr/bin/bash
#!/bin/bash

> $1

echo -n "#define GIT_SHA1 \"" > $1

git --version 2>&1 >/dev/null
GIT_IS_AVAILABLE=$?
if [ $GIT_IS_AVAILABLE -ne 0 ]; then
if (command -v "git" >/dev/null) then
git rev-parse --short HEAD | tr -d '\n' >> $1
fi