~ubuntu-branches/debian/squeeze/libgpg-error/squeeze

« back to all changes in this revision

Viewing changes to src/mkerrcodes.awk

  • Committer: Bazaar Package Importer
  • Author(s): Jose Carlos Garcia Sogo
  • Date: 2006-09-24 16:33:03 UTC
  • mfrom: (1.2.1 upstream) (2.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20060924163303-2secsa8lts3hhhct
Tags: 1.4-1
* New upstream version.
* Bumped Standards-Version to 3.7.2. No changes needed.
* Use {binary:Version} field in libgpg-error-dev dependecy field. (Closes: #384376)
* Fix typo in upstream URL at debian/copyright file (Closes: #387735)
* debian/patches: Disable m4_macros and 10_relibtoolize patches.
  Upstream uses now a quite current copy of gettext.
* Update FSF address in debian/copyright file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# mkerrcodes.awk
2
 
# Copyright (C) 2004 g10 Code GmbH
 
2
# Copyright (C) 2004, 2005 g10 Code GmbH
3
3
4
4
# This program is free software; you can redistribute it and/or
5
5
# modify it under the terms of the GNU General Public License as
41
41
# data portions.)  If your modification has such potential, you must delete
42
42
# any notice of this special exception to the GPL from your modified version.
43
43
 
44
 
# This script outputs an intermediate file that contains the following block
45
 
# for each error value symbol in the input file (example for EINVAL):
46
 
#
47
 
# #ifdef EINVAL
48
 
# EINVAL GPG_ERR_EINVAL
49
 
# #endif
50
 
#
51
 
# The input file is a list of possible system errors.
 
44
# This script outputs an intermediate file that contains the following output:
 
45
# static struct
 
46
#   {
 
47
#     int err;
 
48
#     const char *err_sym;
 
49
#   } err_table[] =
 
50
# {
 
51
#   { 7, "GPG_ERR_E2BIG" },
 
52
#   [...]
 
53
# };
 
54
#
 
55
# The input file is a list of possible system errors, followed by a GPG_ERR_* name:
 
56
#
 
57
# 7 GPG_ERR_E2BIG
52
58
#
53
59
# Comments (starting with # and ending at the end of the line) are removed,
54
60
# as is trailing whitespace.
63
69
/^#/ { next; }
64
70
 
65
71
header {
66
 
  if ($0 ~ /^[0-9]+/)
 
72
  if (! /^[ \t]*$/)
67
73
    {
68
74
      header = 0;
69
75