Subversion Repositories wimsdev

Rev

Rev 10 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 reyssat 1
#! /bin/sh
2
 
3
cat <<@ >colors.c
4
 
5
        /* This file is automatically generated! Do not edit it. */
8103 bpr 6
#include "texgif.h"
7
struct colors colors[]={
10 reyssat 8
 
9
@
10
 
11
sort -k 1,1 <colors | awk 'NF==2 {print "       {\""$1"\",      "$2"},"}' >>colors.c
12
 
13
cat <<@ >>colors.c
14
};
15
 
8103 bpr 16
int colorno=(sizeof(colors)/sizeof(colors[0]));
10 reyssat 17
 
18
@
19