Bug 1372127 - move .chk to root folder, r=ttaubert
authorFranziskus Kiefer <franziskuskiefer@gmail.com>
Mon, 03 Jul 2017 10:23:04 +0200
changeset 13451 b790eee5aa8f833cb2e87251d6d705fda6bbf970
parent 13450 825e5d444e99a61a0cfedb24c2fd95257e58c23c
child 13452 7a6a93296c5294c9f32bf25e98ed12ccd5294940
push id2263
push userfranziskuskiefer@gmail.com
push dateTue, 04 Jul 2017 10:47:09 +0000
reviewersttaubert
bugs1372127
Bug 1372127 - move .chk to root folder, r=ttaubert Differential Revision: https://nss-review.dev.mozaws.net/D360
.gitignore
.hgignore
mach
--- 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)