3
# $Id: cmplhlp2.sh 29 2006-02-03 19:21:07Z hubert $
5
# T H E P I N E M A I L S Y S T E M
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
16
# Please address all bugs and comments to "pine-bugs@cac.washington.edu"
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.
23
# Pine, Pico, and Pilot software and its included text are Copyright
24
# 1989-1996 by the University of Washington.
26
# The full text of our legal notices is contained in the file called
27
# CPYRIGHT, included with this distribution.
30
# Pine is in part based on The Elm Mail System:
31
# ***********************************************************************
32
# * The Elm Mail System - Revision: 2.13 *
34
# * Copyright (c) 1986, 1987 Dave Taylor *
35
# * Copyright (c) 1988, 1989 USENET Community Trust *
36
# ***********************************************************************
42
# cmplhelp.sh -- This script take the pine.help file and turns it into
43
# a .h file defining lots of strings
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");}'