]> granicus.if.org Git - graphviz/commitdiff
write a comment into config indicating what a user is allowed to change
authorellson <devnull@localhost>
Mon, 20 Aug 2007 16:27:24 +0000 (16:27 +0000)
committerellson <devnull@localhost>
Mon, 20 Aug 2007 16:27:24 +0000 (16:27 +0000)
lib/gvc/gvconfig.c

index b81f709980b3dc0dcd18075b062000f55272d693..654d502da431555156dd2fec182c4eec4479aee4 100644 (file)
@@ -368,6 +368,12 @@ static void config_rescan(GVC_t *gvc, char *config_path)
        if (!f) {
            agerr(AGERR,"failed to open %s for write.\n", config_path);
        }
+
+       fprintf(f, "# This file was generated by \"dot -c\" at time of install.\n\n");
+       fprintf(f, "# You may temporarily disable a plugin by removing or commenting out\n");
+       fprintf(f, "# a line in this file, or you can modify its \"quality\" value to affect\n");
+       fprintf(f, "# default plugin selection.\n\n");
+       fprintf(f, "# Manual edits to this file **will be lost** on upgrade.\n\n");
     }
 
     libdir = gvconfig_libdir();