Subversion Repositories wimsdev

Rev

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

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