~ubuntu-branches/debian/stretch/alpine/stretch

« back to all changes in this revision

Viewing changes to pith/cmplhlp2.sh

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2007-02-17 13:17:42 UTC
  • Revision ID: james.westby@ubuntu.com-20070217131742-99x5c6cpg1pbkdhw
Tags: upstream-0.82+dfsg
ImportĀ upstreamĀ versionĀ 0.82+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# $Id: cmplhlp2.sh 29 2006-02-03 19:21:07Z hubert $
 
4
#
 
5
#            T H E    P I N E    M A I L   S Y S T E M
 
6
#
 
7
#   Laurence Lundblade and Mike Seibel
 
8
#   Networks and Distributed Computing
 
9
#   Computing and Communications
 
10
#   University of Washington
 
11
#   Administration Building, AG-44
 
12
#   Seattle, Washington, 98195, USA
 
13
#   Internet: lgl@CAC.Washington.EDU
 
14
#             mikes@CAC.Washington.EDU
 
15
#
 
16
#   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
 
17
#
 
18
#
 
19
#   Pine and Pico are registered trademarks of the University of Washington.
 
20
#   No commercial use of these trademarks may be made without prior written
 
21
#   permission of the University of Washington.
 
22
#
 
23
#   Pine, Pico, and Pilot software and its included text are Copyright
 
24
#   1989-1996 by the University of Washington.
 
25
#
 
26
#   The full text of our legal notices is contained in the file called
 
27
#   CPYRIGHT, included with this distribution.
 
28
#
 
29
#
 
30
#   Pine is in part based on The Elm Mail System:
 
31
#    ***********************************************************************
 
32
#    *  The Elm Mail System  -  Revision: 2.13                             *
 
33
#    *                                                                     *
 
34
#    *                  Copyright (c) 1986, 1987 Dave Taylor               *
 
35
#    *                  Copyright (c) 1988, 1989 USENET Community Trust    *
 
36
#    ***********************************************************************
 
37
 
38
#
 
39
 
 
40
 
 
41
 
42
# cmplhelp.sh -- This script take the pine.help file and turns it into
 
43
# a .h file defining lots of strings
 
44
#
 
45
 
 
46
 
 
47
awk  ' BEGIN    {  printf("\n\n\t\t/*\n");
 
48
                   printf("\t\t * AUTMATICALLY GENERATED FILE!\n");
 
49
                   printf("\t\t * DO NOT EDIT!!\n\t\t */\n\n\n");
 
50
                   printf("#ifndef PITH_HELPTEXT_INCLUDED\n");
 
51
                   printf("#define PITH_HELPTEXT_INCLUDED\n\n\n");
 
52
                   printf("#define\tHelpType\tchar **\n");
 
53
                   printf("#define\tNO_HELP\t(char **) NULL\n");
 
54
                   printf("struct help_texts {\n");
 
55
                   printf("  HelpType help_text;\n");
 
56
                   printf("  char  *tag;\n};\n\n"); }
 
57
       /^====/  {  printf ("extern char *%s[] ; \n\n", $2 ); }
 
58
       END      {  printf ("\n\nextern struct help_texts h_texts[];\n\n");
 
59
                   printf ("#endif /* PITH_HELPTEXT_INCLUDED */\n\n");}'
 
60
 
 
61
 
 
62
 
 
63