Commit f44e5aaa authored by Erwin Janssen's avatar Erwin Janssen

Don't use path as variable name in colortbl.awk

Instead of using `argv[1]` to name the variable, we now always call it
`color_lib` in awk/colortbl.awk. The reason for this, is in some build
configurations, like the Visual Studio and CMake build, the full path to
the color_lib file is used. This resulted in the variable conaining
slashes, etc. Since the rest of the code already assumes this variable is
called `color_lib`, there is no problem with hard coding it in
parent 3dc7e1be
......@@ -35,7 +35,7 @@ function rgb_to_hsv(r,g,b) {
v = v * 255.0;
BEGIN { s = ARGV[1]; gsub("\\.","_",s); printf("static hsvrgbacolor_t %s[] = {\n",s); }
BEGIN { gsub("\\.","_",s); printf("static hsvrgbacolor_t color_lib[] = {\n",s); }
/^$/ { next; }
/^#/ { next; }
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