Bug 1372127 - move .chk to root folder, r=ttaubert
Differential Revision: https://nss-review.dev.mozaws.net/D360
--- a/.gitignore
+++ b/.gitignore
@@ -13,8 +13,9 @@ GPATH
GRTAGS
GTAGS
#*
.#*
.ycm_extra_conf.py*
fuzz/libFuzzer/*
fuzz/corpus
fuzz/out
+.chk
--- a/.hgignore
+++ b/.hgignore
@@ -13,8 +13,9 @@ GPATH
GRTAGS
GTAGS
#*
.#*
.ycm_extra_conf.py*
fuzz/libFuzzer/*
fuzz/corpus
fuzz/out
+.chk
--- a/mach
+++ b/mach
@@ -61,17 +61,17 @@ class cfAction(argparse.Action):
subprocess.call(command + values)
def filesChanged(self, path):
hash = sha256()
for dirname, dirnames, files in os.walk(path):
for file in files:
with open(os.path.join(dirname, file), "rb") as f:
hash.update(f.read())
- chk_file = cwd + "/out/.chk"
+ chk_file = cwd + "/.chk"
old_chk = ""
new_chk = hash.hexdigest()
if os.path.exists(chk_file):
with open(chk_file) as f:
old_chk = f.readline()
if old_chk != new_chk:
with open(chk_file, "w+") as f:
f.write(new_chk)