This repository has been archived by the owner on Jun 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40036c9
commit 469257c
Showing
16 changed files
with
199 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 8 additions & 9 deletions
17
addons/replay_intercept/config.cpp → addons/main/config.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "script_mod.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "script_version.hpp" | ||
|
||
#define VERSION MAJOR.MINOR.PATCHLVL-BUILD | ||
#define VERSION_AR MAJOR,MINOR,PATCHLVL,BUILD | ||
|
||
#define VERSION_CONFIG version = #VERSION; versionStr = #VERSION; versionAr[] = {VERSION_AR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#define MAJOR 1 | ||
#define MINOR 0 | ||
#define PATCHLVL 10 | ||
#define BUILD 2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
find_program(HEMTT "hemtt") | ||
if(HEMTT) | ||
message("Found hemtt!") | ||
execute_process(COMMAND HEMTT build --release --force-release WORKING_DIRECTORY ${SRC_PATH}) | ||
execute_process(COMMAND HEMTT zip) | ||
else() | ||
message("Could not find hemtt!") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# From https://www.mattkeeter.com/blog/2018-01-06-versioning/ | ||
|
||
message("Writing script_version.hpp") | ||
|
||
find_program(GIT "git") | ||
|
||
if(GIT) | ||
message("Found git at:") | ||
message(${GIT}) | ||
else() | ||
message("Did not find git!") | ||
endif() | ||
|
||
execute_process(COMMAND ${GIT} log --pretty=format:'%h' -n 1 | ||
OUTPUT_VARIABLE GIT_REV | ||
WORKING_DIRECTORY ${SRCDIR} | ||
# ERROR_QUIET | ||
) | ||
|
||
# Check whether we got any revision (which isn't | ||
# always the case, e.g. when someone downloaded a zip | ||
# file from Github instead of a checkout) | ||
if ("${GIT_REV}" STREQUAL "") | ||
set(VERSION_MAJOR "0") | ||
set(VERSION_MINOR "0") | ||
set(VERSION_PATCH "0") | ||
set(VERSION_BUILD "0") | ||
else() | ||
execute_process( | ||
COMMAND ${GIT} describe --tag --always | ||
OUTPUT_VARIABLE GIT_TAG ERROR_QUIET | ||
WORKING_DIRECTORY ${SRCDIR}) | ||
|
||
message("Using git tag ${GIT_TAG}") | ||
|
||
string(REPLACE "-" ";" GIT_TAG_LIST ${GIT_TAG}) | ||
list(LENGTH GIT_TAG_LIST GIT_TAG_LIST_LENGTH) | ||
|
||
list(GET GIT_TAG_LIST 0 VERSION_TAG) | ||
if(GIT_TAG_LIST_LENGTH GREATER 1) | ||
list(GET GIT_TAG_LIST 1 VERSION_BUILD) | ||
else() | ||
set(VERSION_BUILD "0") | ||
endif() | ||
message("Tag: ${VERSION_TAG}") | ||
message("Build: ${VERSION_BUILD}") | ||
message("") | ||
string(REPLACE "." ";" GIT_VERSION_LIST ${VERSION_TAG}) | ||
list(GET GIT_VERSION_LIST 0 VERSION_MAJOR) | ||
list(GET GIT_VERSION_LIST 1 VERSION_MINOR) | ||
list(GET GIT_VERSION_LIST 2 VERSION_PATCH) | ||
endif() | ||
|
||
set(VERSION "#define MAJOR ${VERSION_MAJOR} | ||
#define MINOR ${VERSION_MINOR} | ||
#define PATCHLVL ${VERSION_PATCH} | ||
#define BUILD ${VERSION_BUILD} | ||
") | ||
|
||
if(EXISTS ${VERSIONFILE_PATH}) | ||
file(READ ${VERSIONFILE_PATH} VERSION_) | ||
else() | ||
set(VERSION_ "") | ||
endif() | ||
|
||
if (NOT "${VERSION}" STREQUAL "${VERSION_}") | ||
file(WRITE ${VERSIONFILE_PATH} "${VERSION}") | ||
endif() |
Oops, something went wrong.