Rev 10 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 10 | Rev 8103 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #! /bin/sh |
1 | #! /bin/sh |
2 | 2 | ||
3 | cat <<@ >colors.c |
3 | cat <<@ >colors.c |
4 | 4 | ||
5 | /* This file is automatically generated! Do not edit it. */ |
5 | /* This file is automatically generated! Do not edit it. */ |
6 | - | ||
7 | struct { |
- | |
8 | char *name; |
- | |
9 |
|
6 | #include "texgif.h" |
10 |
|
7 | struct colors colors[]={ |
11 | 8 | ||
12 | @ |
9 | @ |
13 | 10 | ||
14 | sort -k 1,1 <colors | awk 'NF==2 {print " {\""$1"\", "$2"},"}' >>colors.c |
11 | sort -k 1,1 <colors | awk 'NF==2 {print " {\""$1"\", "$2"},"}' >>colors.c |
15 | 12 | ||
16 | cat <<@ >>colors.c |
13 | cat <<@ >>colors.c |
17 | }; |
14 | }; |
18 | 15 | ||
19 |
|
16 | int colorno=(sizeof(colors)/sizeof(colors[0])); |
20 | 17 | ||
21 | @ |
18 | @ |
22 | 19 |