]> Cypherpunks.ru repositories - goredo.git/blobdiff - dot.go
Download link for 2.6.2 release
[goredo.git] / dot.go
diff --git a/dot.go b/dot.go
index a77ec69197fda3e1b2c07daf950de2a542f73d8c..19994ded165d8162e23e6c5ab467a92d21765e3a 100644 (file)
--- a/dot.go
+++ b/dot.go
@@ -1,19 +1,17 @@
-/*
-goredo -- djb's redo implementation on pure Go
-Copyright (C) 2020-2023 Sergey Matveev <stargrave@stargrave.org>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, version 3 of the License.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
+// goredo -- djb's redo implementation on pure Go
+// Copyright (C) 2020-2024 Sergey Matveev <stargrave@stargrave.org>
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, version 3 of the License.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 // Dependency DOT graph generation
 
@@ -52,8 +50,8 @@ func dotWalker(data map[DotNodes]bool, tgt *Tgt) (map[DotNodes]bool, error) {
                switch typ {
                case DepTypeIfcreate:
                        data[DotNodes{tgt.rel, NewTgt(path.Join(tgtH, string(chunk))).rel}] = true
-               case DepTypeIfchange, DepTypeIfchangeDummy:
-                       if typ == DepTypeIfchangeDummy {
+               case DepTypeIfchange, DepTypeIfchangeNonex:
+                       if typ == DepTypeIfchangeNonex {
                                name = string(chunk)
                        } else {
                                name = string(chunk[InodeLen+HashLen:])