Commit 0269e0dd authored by erg's avatar erg

Add support for color namespaces; add Brewer color data

parent 81c76245
#
# /**********************************************************
# * This software is part of the graphviz package *
# * http://www.graphviz.org/ *
# * *
# * Copyright (c) 1994-2005 AT&T Corp. *
# * and is licensed under the *
# * Common Public License, Version 1.0 *
# * by AT&T Corp. *
# * *
# * Information and Software Systems Research *
# * AT&T Research, Florham Park NJ *
# **********************************************************/
#
# Convert Brewer data to same RGB format used in color_names.
# See brewer_colors for input format.
#
BEGIN {
FS = ","
}
/^[^#]/{
if ($1 != "") {
name = $1 $2;
gsub ("\"","",name);
}
printf ("/%s/%s %s %s %s\n", name, $5, $7, $8, $9);
}
......@@ -39,7 +39,10 @@ colortbl.h : color_lib
$(AWK) -f $(top_srcdir)/awk/colortbl.awk color_lib > colortbl.h
color_lib : $(top_srcdir)/lib/common/color_names
$(SED) s/_//g $(top_srcdir)/lib/common/color_names | LC_COLLATE=C $(SORT) > color_lib
cat brewer_lib $(top_srcdir)/lib/common/color_names | LC_COLLATE=C $(SORT) > color_lib
brewer_lib : $(top_srcdir)/lib/common/brewer_colors
$(AWK) -f $(top_srcdir)/awk/brewer.awk $(top_srcdir)/lib/common/brewer_colors > brewer_lib
htmllex.o htmllex.lo: htmllex.c htmllex.h htmlparse.h
htmlparse.o htmlparse.lo: htmlparse.c htmlparse.h
......@@ -53,7 +56,7 @@ htmlparse.c: y.output
htmlparse.h: y.output
@SED@ "s/yy/html/g" < y.tab.h > htmlparse.h
DISTCLEANFILES = color_lib colortbl.h y.output y.tab.[ch] htmlparse.[ch]
DISTCLEANFILES = brewer_lib color_lib colortbl.h y.output y.tab.[ch] htmlparse.[ch]
EXTRA_DIST = Makefile.old README.imap chars.tcl ps.h \
strcasecmp.c strncasecmp.c htmlparse.c htmlparse.h y.output
......@@ -64,10 +64,11 @@ htmlparse.o htmllex.o : htmllex.h
#ps.h : ps.txt
# $(AWK) -f $(AWKDIR)/stringize.awk ps.txt > ps.h
colortbl.h : color_names
$(SED) s/_//g color_names | LC_COLLATE=C $(SORT) > color_lib
colortbl.h : color_names brewer_colors
$(AWK) -f $(AWKDIR)/brewer.awk brewer_colors > brewer_lib
cat brewer_lib color_names | LC_COLLATE=C $(SORT) > color_lib
$(AWK) -f $(AWKDIR)/colortbl.awk color_lib > colortbl.h
$(RM) color_lib
$(RM) color_lib brewer_lib
clean:
$(RM) core *.o htmlparse.c htmlparse.h colortbl.h y.output
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment