diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-05-26 08:08:05 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-05-26 08:08:05 +0200 |
commit | 41205719d34969018f708baa70d9d06dae0c0d08 (patch) | |
tree | 85a93e357c0700b65a30bd12e5a2e4a44349616f | |
parent | 02aa15de1b3821b0288a13dec71ce99f2e31fda5 (diff) | |
download | postgresql-41205719d34969018f708baa70d9d06dae0c0d08.tar.gz postgresql-41205719d34969018f708baa70d9d06dae0c0d08.zip |
Change Graphviz file extension
Change extension for Graphviz files from .dot to .gv. The latter
appears to be the generally preferred one nowadays.
Discussion: https://www.postgresql.org/message-id/flat/71fe76d2-c7d7-2acc-6762-bbf9e61c566e%402ndquadrant.com
-rw-r--r-- | contrib/pg_trgm/trgm_regexp.c | 14 | ||||
-rw-r--r-- | doc/src/sgml/images/Makefile | 2 | ||||
-rw-r--r-- | doc/src/sgml/images/gin.gv (renamed from doc/src/sgml/images/gin.dot) | 0 |
3 files changed, 8 insertions, 8 deletions
diff --git a/contrib/pg_trgm/trgm_regexp.c b/contrib/pg_trgm/trgm_regexp.c index d6420a5f87a..9ee8a54a8da 100644 --- a/contrib/pg_trgm/trgm_regexp.c +++ b/contrib/pg_trgm/trgm_regexp.c @@ -202,7 +202,7 @@ /* * Uncomment (or use -DTRGM_REGEXP_DEBUG) to print debug info, * for exploring and debugging the algorithm implementation. - * This produces three graph files in /tmp, in Graphviz .dot format. + * This produces three graph files in /tmp, in Graphviz .gv format. * Some progress information is also printed to postmaster stderr. */ /* #define TRGM_REGEXP_DEBUG */ @@ -2187,8 +2187,8 @@ printSourceNFA(regex_t *regex, TrgmColorInfo *colors, int ncolors) appendStringInfoString(&buf, "}\n"); { - /* dot -Tpng -o /tmp/source.png < /tmp/source.dot */ - FILE *fp = fopen("/tmp/source.dot", "w"); + /* dot -Tpng -o /tmp/source.png < /tmp/source.gv */ + FILE *fp = fopen("/tmp/source.gv", "w"); fprintf(fp, "%s", buf.data); fclose(fp); @@ -2249,8 +2249,8 @@ printTrgmNFA(TrgmNFA *trgmNFA) appendStringInfoString(&buf, "}\n"); { - /* dot -Tpng -o /tmp/transformed.png < /tmp/transformed.dot */ - FILE *fp = fopen("/tmp/transformed.dot", "w"); + /* dot -Tpng -o /tmp/transformed.png < /tmp/transformed.gv */ + FILE *fp = fopen("/tmp/transformed.gv", "w"); fprintf(fp, "%s", buf.data); fclose(fp); @@ -2340,8 +2340,8 @@ printTrgmPackedGraph(TrgmPackedGraph *packedGraph, TRGM *trigrams) appendStringInfoString(&buf, "}\n"); { - /* dot -Tpng -o /tmp/packed.png < /tmp/packed.dot */ - FILE *fp = fopen("/tmp/packed.dot", "w"); + /* dot -Tpng -o /tmp/packed.png < /tmp/packed.gv */ + FILE *fp = fopen("/tmp/packed.gv", "w"); fprintf(fp, "%s", buf.data); fclose(fp); diff --git a/doc/src/sgml/images/Makefile b/doc/src/sgml/images/Makefile index 6b229f03ad9..bb508dd0dd0 100644 --- a/doc/src/sgml/images/Makefile +++ b/doc/src/sgml/images/Makefile @@ -11,7 +11,7 @@ DOT = dot all: $(ALL_IMAGES) -%.svg: %.dot +%.svg: %.gv $(DOT) -T svg -o $@ $< %.svg: %.txt diff --git a/doc/src/sgml/images/gin.dot b/doc/src/sgml/images/gin.gv index 097e91029a4..097e91029a4 100644 --- a/doc/src/sgml/images/gin.dot +++ b/doc/src/sgml/images/gin.gv |