This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge branch 'miami' of https://github.com/GTAmodding/re3 into miami_…
…highfps
- Loading branch information
Showing
with
25 additions
and 20 deletions.
- +4 −3 .github/workflows/build-cmake-conan.yml
- +13 −11 printHash.sh
- +6 −6 src/audio/sampman_null.cpp
- +1 −0 src/core/CdStreamPosix.cpp
- +1 −0 src/skel/crossplatform.h
There are no files selected for viewing
| @@ -1,12 +1,14 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| > $1 | ||
|
|
||
| echo -n "#define GIT_SHA1 \"" > $1 | ||
|
|
||
| if (command -v "git" >/dev/null) then | ||
| git rev-parse --short HEAD | tr -d '\n' >> $1 | ||
| #!/usr/bin/env sh | ||
| if [ -z "${1}" ] | ||
| then | ||
| printf "%s\n" "Input the path to the file for writing the commit hash to." | ||
| else | ||
| printf "%s" "#define GIT_SHA1 \"" > $1 | ||
|
|
||
| if (command -v "git" >/dev/null) then | ||
| git rev-parse --short HEAD | tr -d '\n' >> $1 | ||
| fi | ||
|
|
||
| printf "%s\n" "\"" >> $1 | ||
| printf "%s\n" "const char* g_GIT_SHA1 = GIT_SHA1;" >> $1 | ||
| fi | ||
|
|
||
| echo "\"" >> $1 | ||
| echo "const char* g_GIT_SHA1 = GIT_SHA1;" >> $1 |