home *** CD-ROM | disk | FTP | other *** search
/ ftp.muug.mb.ca / 2014.06.ftp.muug.mb.ca.tar / ftp.muug.mb.ca / pub / src / top / sigconv.awk < prev    next >
Text File  |  1992-02-01  |  439b  |  19 lines

  1. BEGIN        {
  2.             print "/* This file was automatically generated */"
  3.             print "/* by the awk script \"sigconv.awk\".      */\n"
  4.             print "struct sigdesc {"
  5.             print "    char *name;"
  6.             print "    int  number;"
  7.             print "};\n"
  8.             print "struct sigdesc sigdesc[] = {"
  9.         }
  10.  
  11. /^#define[ \t][ \t]*SIG[A-Z]/    {
  12.                     printf "    \"%s\",\t%2d,\n", \
  13.                     substr($2, 4), $3
  14.                 }
  15.  
  16. END                {
  17.                     print "    NULL,\t 0\n};"
  18.                 }
  19.