mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00: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:
parent
fc12633055
commit
82dfee1642
3 changed files with 3 additions and 8 deletions
|
@ -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 + ")");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue