mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
make_scmrev.h.js needs to compare the full file instead of just the HEAD hash.
remove refs to deleted files from Common project
This commit is contained in:
@ -44,12 +44,11 @@ function GetFirstStdOutLine(cmd)
|
||||
}
|
||||
}
|
||||
|
||||
function GetRevFromFile(f)
|
||||
function GetFileContents(f)
|
||||
{
|
||||
try
|
||||
{
|
||||
// read the current hash
|
||||
return oFS.OpenTextFile(f).ReadAll().match(/SCM_REV_STR\s+"([0-9a-f]+)/)[1];
|
||||
return oFS.OpenTextFile(f).ReadAll();
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
@ -76,7 +75,7 @@ var out_contents =
|
||||
"#define SCM_IS_MASTER " + isMaster + "\n";
|
||||
|
||||
// check if file needs updating
|
||||
if (revision == GetRevFromFile(outfile))
|
||||
if (out_contents == GetFileContents(outfile))
|
||||
{
|
||||
WScript.Echo(outfile + " doesn't need updating (already at " + revision + ")");
|
||||
}
|
||||
|
Reference in New Issue
Block a user