mirror of https://github.com/PCSX2/pcsx2.git
Don't use build date on openSUSE.
Fixes RPMLINT warning: pcsx2.i586: W: file-contains-date-and-time /usr/bin/pcsx2 Your file uses __DATE and __TIME__ this causes the package to rebuild when not needed
This commit is contained in:
parent
7b1d3ba7ea
commit
9fd2f3dd8a
|
@ -26,6 +26,7 @@ function(detectOperatingSystem)
|
|||
endif()
|
||||
if ("${OS_RELEASE}" MATCHES "^.*ID=.*suse.*$")
|
||||
set(openSUSE TRUE PARENT_SCOPE)
|
||||
add_definitions(-DopenSUSE)
|
||||
message(STATUS "Build openSUSE specific")
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
@ -194,14 +194,20 @@ void SysLogMachineCaps()
|
|||
{
|
||||
if ( !PCSX2_isReleaseVersion )
|
||||
{
|
||||
Console.WriteLn(Color_StrongGreen, "PCSX2 %u.%u.%u-%lld %s - compiled on " __DATE__,
|
||||
PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo,
|
||||
Console.WriteLn(Color_StrongGreen, "PCSX2 %u.%u.%u-%lld %s"
|
||||
#ifndef openSUSE
|
||||
"- compiled on " __DATE__
|
||||
#endif
|
||||
, PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo,
|
||||
SVN_REV, SVN_MODS ? "(modded)" : ""
|
||||
);
|
||||
}
|
||||
else { // shorter release version string
|
||||
Console.WriteLn(Color_StrongGreen, "PCSX2 %u.%u.%u-%lld - compiled on " __DATE__,
|
||||
PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo,
|
||||
Console.WriteLn(Color_StrongGreen, "PCSX2 %u.%u.%u-%lld"
|
||||
#ifndef openSUSE
|
||||
"- compiled on " __DATE__
|
||||
#endif
|
||||
, PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo,
|
||||
SVN_REV );
|
||||
}
|
||||
|
||||
|
|
|
@ -356,8 +356,13 @@ MainEmuFrame::MainEmuFrame(wxWindow* parent, const wxString& title)
|
|||
else
|
||||
{
|
||||
// beta / development editions, which feature revision number and compile date.
|
||||
#ifndef openSUSE
|
||||
wintitle.Printf( L"%s %d.%d.%d-%lld%s (git) %s", pxGetAppName().c_str(), PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo,
|
||||
SVN_REV, SVN_MODS ? L"m" : wxEmptyString, fromUTF8(__DATE__).c_str() );
|
||||
#else
|
||||
wintitle.Printf( L"%s %d.%d.%d-%lld%s (git)", pxGetAppName().c_str(), PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo,
|
||||
SVN_REV, SVN_MODS ? L"m" : wxEmptyString );
|
||||
#endif
|
||||
}
|
||||
|
||||
SetTitle( wintitle );
|
||||
|
|
|
@ -32,10 +32,17 @@ static LRESULT WINAPI AboutProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
|
|||
|
||||
wchar_t outstr[256];
|
||||
if( IsDevBuild )
|
||||
swprintf_s( outstr, L"Build %lld -- Compiled on " _T(__DATE__), SVN_REV );
|
||||
swprintf_s( outstr, L"Build %lld"
|
||||
#ifndef openSUSE
|
||||
"-- Compiled on " _T(__DATE__)
|
||||
#endif
|
||||
, SVN_REV );
|
||||
else
|
||||
swprintf_s( outstr, L"Release v%d.%d -- Compiled on " _T(__DATE__),
|
||||
VersionInfo::Release, VersionInfo::Revision );
|
||||
swprintf_s( outstr, L"Release v%d.%d"
|
||||
#ifndef openSUSE
|
||||
"-- Compiled on " _T(__DATE__)
|
||||
#endif
|
||||
, VersionInfo::Release, VersionInfo::Revision );
|
||||
|
||||
SetWindowText( GetDlgItem(hDlg, IDC_LABEL_VERSION_INFO), outstr );
|
||||
ShowWindow( hDlg, true );
|
||||
|
|
Loading…
Reference in New Issue