Skip to content

Commit

Permalink
Remove current git hash and version string methods introduced in this…
Browse files Browse the repository at this point in the history
… branch/etjk
  • Loading branch information
taysta committed Oct 29, 2023
1 parent 8c6469e commit 2db6216
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 50 deletions.
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,6 @@ else()
message(STATUS "SOURCE_DATE_EPOCH is set ($ENV{SOURCE_DATE_EPOCH}): SOURCE_DATE set to \"${SOURCE_DATE}\"")
endif()

# Current Git SHA1 hash
include(GetGitRevisionDescription)
get_git_head_revision(GIT_REFSPEC GIT_HASH)
message(STATUS "Git revision is ${GIT_HASH}")

configure_file(shared/qcommon/q_version.h.in shared/qcommon/q_version.h @ONLY)

#=============================================================================
Expand Down
45 changes: 0 additions & 45 deletions codemp/client/cl_console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,51 +564,6 @@ void Con_Init (void) {
Cmd_AddCommand( "condump", Con_Dump_f, "Dump console text to file" );
Cmd_SetCommandCompletionFunc( "condump", Cmd_CompleteTxtName );

#ifndef _DEBUG
{//build version string for console
int day, year;
char month[4];

if (sscanf(SOURCE_DATE, "%s %i %i", &month, &day, &year) == 3) {
int mm = 0;

//sry..
if (month[0] == 'J' && month[1] == 'a' && month[2] == 'n')
mm = 1;
else if (month[0] == 'F')
mm = 2;
else if (month[0] == 'M' && month[1] == 'a' && month[2] == 'r')
mm = 3;
else if (month[0] == 'A' && month[1] == 'p')
mm = 4;
else if (month[0] == 'M' && month[1] == 'a' && month[2] == 'y')
mm = 5;
else if (month[0] == 'J' && month[1] == 'u' && month[2] == 'n')
mm = 6;
else if (month[0] == 'J' && month[1] == 'u' && month[2] == 'l')
mm = 7;
else if (month[0] == 'A' && month[1] == 'u')
mm = 8;
else if (month[0] == 'S')
mm = 9;
else if (month[0] == 'O')
mm = 10;
else if (month[0] == 'N')
mm = 11;
else if (month[0] == 'D')
mm = 12;

Com_sprintf(version, sizeof(version), CLIENT_WINDOW_TITLE ": [%02i/%02i/%04i]", day, mm, year);
}
}
#else
Com_sprintf(version, sizeof(version), CLIENT_WINDOW_TITLE "(DEBUG)");
#endif

if (!version[0])
Q_strncpyz(version, "EternalJK", sizeof(version));
}

/*
================
Con_Shutdown
Expand Down

0 comments on commit 2db6216

Please sign in to comment.