~ubuntu-branches/debian/sid/x11-apps/sid

« back to all changes in this revision

Viewing changes to xman/vendor.h

  • Committer: Package Import Robot
  • Author(s): Julien Cristau
  • Date: 2013-12-25 18:39:25 UTC
  • Revision ID: package-import@ubuntu.com-20131225183925-kh1rc0smebkuyxf7
Tags: 7.7+2
* xclipboard 1.1.3
* xclock 1.0.7
* xman 1.1.3
* Use dh.
* Disable silent build rules.
* Remove Cyril from Uploaders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $XConsortium: vendor.h,v 1.12 94/04/17 20:44:00 rws Exp $ */
2
 
/* $XdotOrg: xc/programs/xman/vendor.h,v 1.4 2004/10/18 14:21:47 eich Exp $ */
3
1
/*
4
2
 
5
3
Copyright (c) 1991  X Consortium
29
27
from the X Consortium.
30
28
 
31
29
*/
32
 
/* $XFree86: xc/programs/xman/vendor.h,v 1.13 2003/07/29 21:16:56 dawes Exp $ */
33
30
 
34
31
/* Vendor-specific definitions */
35
32
#ifdef HAVE_CONFIG_H
53
50
 * complete than the cat directories.
54
51
 */
55
52
 
56
 
#if ( defined(UTEK) || defined(apollo) || defined(Lynx) )
57
 
#  define SEARCHDIR  CAT
58
 
#else
59
 
#  define SEARCHDIR  MAN
60
 
#endif
 
53
#define SEARCHDIR  MAN
61
54
 
62
 
#if ( defined(sgi) || (defined(i386) && (defined(SYSV) || defined(SVR4))  && !defined(sun)) || (defined(BSD) && (BSD >= 199103)) || defined(linux) || defined(__CYGWIN__) )
 
55
#if (defined(sgi) || (defined(SVR4) && !defined(sun)) || (defined(BSD) && (BSD >= 199103)) || defined(linux) || defined(__CYGWIN__) )
63
56
# define SEARCHOTHER CAT
64
57
#endif
65
58
 
66
59
/*
67
60
 * The default manual page directory.
68
61
 *
69
 
 * The MANPATH enviornment variable will override this.
 
62
 * The MANPATH environment variable will override this.
70
63
 */
71
64
 
72
65
#ifndef SYSMANPATH
73
66
 
74
 
#if defined(macII)
75
 
#  define SYSMANPATH "/usr/catman/u_man:/usr/catman/a_man"
76
 
#elif defined(__bsdi__)
 
67
#if defined(__bsdi__)
77
68
#  define SYSMANPATH "/usr/share/man:/usr/contrib/man:/usr/contrib/isode/man:/usr/local/man"
78
69
#elif defined(__OpenBSD__) || defined(__DARWIN__)
79
70
#  define SYSMANPATH "/usr/share/man:/usr/local/man:/usr/X11R6/man"
81
72
#  define SYSMANPATH "/usr/share/man:/usr/X11/man:/usr/openwin/share/man:/usr/dt/share/man:/usr/sfw/share/man"
82
73
#elif defined(SVR4) || defined(__osf__) || (defined(BSD) && (BSD >= 199103))
83
74
#  define SYSMANPATH "/usr/share/man"
84
 
#elif defined(hcx)
85
 
#  define SYSMANPATH "/usr/catman/local_man:/usr/catman/u_man:/usr/catman/a_man:/usr/catman/p_man:/usr/catman/ada_man"
86
 
#elif defined(SYSV) && defined(i386) && !defined(__SCO__) && !defined(sun)
87
 
#  define SYSMANPATH "/usr/catman/u_man:/usr/catman/p_man"
88
75
#elif defined(sgi)
89
76
#  define SYSMANPATH "/usr/catman/a_man:/usr/catman/g_man:/usr/catman/p_man:/usr/catman/u_man:/usr/man/p_man:/usr/man/u_man:/usr/man"
90
77
#endif
99
86
 * Compression Definitions.
100
87
 */
101
88
 
102
 
#if defined( macII ) || defined( hcx ) || \
103
 
        (defined(SYSV) && defined(i386) && !defined(ISC) && \
104
 
        !defined(__UNIXWARE__) && !defined(__SCO__) && !defined(sun)) || defined(sgi)
 
89
#if defined(sgi)
105
90
#  define COMPRESSION_EXTENSION   "z"
106
91
#  define UNCOMPRESS_FORMAT       "pcat %s > %s"
107
 
#  define NO_COMPRESS           /* mac can't handle using pack as a filter and
108
 
                                   xman needs it to be done that way. */
109
 
#elif defined(UTEK)
110
 
#  define COMPRESSION_EXTENSION "C"
111
 
#  define UNCOMPRESS_FORMAT     "ccat < %s > %s"
112
 
#  define COMPRESS              "compact"
 
92
#  define NO_COMPRESS           /* mac can't handle using pack as a filter and
 
93
                                   xman needs it to be done that way. */
113
94
#elif defined (ISC) || defined(__SCO__) || defined(__UNIXWARE__)
114
 
#  define COMPRESSION_EXTENSION   "Z"     /* dummy */
 
95
#  define COMPRESSION_EXTENSION   "Z"           /* dummy */
115
96
#  if !defined(__SCO__) && !defined(__UNIXWARE__)
116
 
#    define COMPRESSION_EXTENSIONS  "zZF" /* pack, compress, freeze */
 
97
#    define COMPRESSION_EXTENSIONS  "zZF"       /* pack, compress, freeze */
117
98
#  else
118
 
#    define COMPRESSION_EXTENSIONS  "zZ"  /* pack, compress */
 
99
#    define COMPRESSION_EXTENSIONS  "zZ"        /* pack, compress */
119
100
#  endif
120
101
#  define UNCOMPRESS_FORMAT       uncompress_format
121
102
#  define UNCOMPRESS_FORMAT_1     "pcat %s > %s"
124
105
#  define NO_COMPRESS
125
106
#else
126
107
#  define COMPRESSION_EXTENSION "Z"
127
 
#  ifndef HAS_MKSTEMP
128
 
#    define UNCOMPRESS_FORMAT     "zcat < %s > %s"
129
 
#  else
130
 
#    define UNCOMPRESS_FORMAT     "zcat < %s >> %s"
131
 
#  endif
 
108
#  define UNCOMPRESS_FORMAT     "zcat < %s >> %s"
132
109
#  define COMPRESS              "compress"
133
110
#  define GZIP_EXTENSION "gz"
134
 
#  ifndef HAS_MKSTEMP
135
 
#    define GUNZIP_FORMAT "gzip -c -d < %s > %s"
136
 
#  else
137
 
#    define GUNZIP_FORMAT "gzip -c -d < %s >> %s"
138
 
#  endif
 
111
#  define GUNZIP_FORMAT "gzip -c -d < %s >> %s"
139
112
#  define GZIP_COMPRESS "gzip"
140
113
#  define BZIP2_EXTENSION "bz2"
 
114
#  define BUNZIP2_FORMAT "bunzip2 -c -d < %s >> %s"
 
115
#  define BZIP2_COMPRESS "bzip2"
141
116
#  define LZMA_EXTENSION "lzma"
142
 
#  ifndef HAS_MKSTEMP
143
 
#    define BUNZIP2_FORMAT "bunzip2 -c -d < %s > %s"
144
 
#    define UNLZMA_FORMAT "unlzma -c -d < %s > %s"
145
 
#  else
146
 
#    define BUNZIP2_FORMAT "bunzip2 -c -d < %s >> %s"
147
 
#    define UNLZMA_FORMAT "unlzma -c -d < %s >> %s"
148
 
#  endif
149
 
#  define BZIP2_COMPRESS "bzip2"
 
117
#  define UNLZMA_FORMAT "unlzma -c -d < %s >> %s"
150
118
#  define LZMA_COMPRESS "lzma"
151
119
#endif
152
120
 
156
124
 * The command filters for the manual and apropos searches.
157
125
 */
158
126
 
159
 
#if (defined(hpux) || defined(macII) || defined(CRAY) || defined(ultrix) || \
160
 
        defined(hcx) )
 
127
#if defined(hpux)
161
128
#  define NO_MANPATH_SUPPORT
162
129
#endif
163
130
 
164
 
#ifndef HAS_MKSTEMP
165
 
#  ifdef NO_MANPATH_SUPPORT
166
 
#    define APROPOS_FORMAT ("man -k %s | pr -h Apropos > %s")
167
 
#  else
168
 
#    define APROPOS_FORMAT ("man -M %s -k %s | pr -h Apropos > %s")
169
 
#  endif
 
131
#ifdef NO_MANPATH_SUPPORT
 
132
#  define APROPOS_FORMAT ("man -k %s | pr -h Apropos >> %s")
170
133
#else
171
 
/* with mkstemp the temp output file is already created */
172
 
#  ifdef NO_MANPATH_SUPPORT
173
 
#    define APROPOS_FORMAT ("man -k %s | pr -h Apropos >> %s")
174
 
#  else
175
 
#    define APROPOS_FORMAT ("man -M %s -k %s | pr -h Apropos >> %s")
176
 
#  endif
 
134
#  define APROPOS_FORMAT ("man -M %s -k %s | pr -h Apropos >> %s")
177
135
#endif
178
136
 
179
137
#ifndef HANDLE_ROFFSEQ
180
 
# if defined(ultrix)
181
 
#  define FORMAT "| nroff -man"             /* The format command. */
182
 
# elif defined(CSRG_BASED)
 
138
# if defined(CSRG_BASED)
183
139
#  define FORMAT "| eqn | tbl | nroff -mandoc"
184
140
# elif defined(BSD) && (BSD >= 199103)
185
141
#  define FORMAT "| eqn | tbl | nroff -man"
186
142
# elif defined(linux) || defined(__CYGWIN__)
187
143
#  define FORMAT "| pic | eqn | tbl -Tlatin1 | GROFF_NO_SGR= groff -Tlatin1 -mandoc"
188
144
# else
189
 
#  define FORMAT "| neqn | nroff -man"      /* The format command. */
 
145
#  define FORMAT "| neqn | nroff -man"  /* The format command. */
190
146
# endif
191
147
# define TBL "tbl"
192
 
#else /* HANDLE_ROFFSEQ */
 
148
#else                           /* HANDLE_ROFFSEQ */
193
149
# if defined(linux)
194
150
#  define ZSOELIM       "zsoelim"
195
151
# else
198
154
# define EQN            "eqn"
199
155
# define TBL            "tbl"
200
156
# define GRAP           "grap"
201
 
# define PIC            "pic"
 
157
# define ROFF_PIC       "pic"
202
158
# define VGRIND         "vgrind"
203
159
# define REFER          "refer"
204
160
# if defined(CSRG_BASED)
211
167
#  define FORMAT        "groff -man"
212
168
# endif
213
169
# define DEFAULT_MANROFFSEQ "et"
214
 
#endif /*HANDLE_ROFFSEQ */
 
170
#endif                          /*HANDLE_ROFFSEQ */
215
171
 
216
172
/*
217
173
 * Names of the man and cat dirs.
223
179
#define MAN "man"
224
180
#endif
225
181
 
226
 
/*
227
 
 * The Apple, Cray,, SYSV386, and HCX folks put the preformatted pages in the
228
 
 * "man" directories.
229
 
 */
230
 
#if (defined(macII) || defined(CRAY) || defined(hcx) || \
231
 
        (defined(SYSV) && defined(i386))) && !defined(SCO) && !defined(sun)
232
 
#  define CAT MAN
233
 
#elif defined(SCO)
 
182
#if defined(SCO)
234
183
#  define CAT "cat."
235
184
#else
236
185
#  define CAT "cat"
242
191
#  define SMAN                  "sman"
243
192
#  undef SEARCHOTHER
244
193
#  define SEARCHOTHER           SMAN
245
 
#  define SGMLENT_EXTENSION     "ent"   /* SGML entity files end in ".ent" */
 
194
#  define SGMLENT_EXTENSION     "ent"   /* SGML entity files end in ".ent" */
246
195
#endif
247
196
 
248
197
 
249
198
typedef struct _SectionList {
250
 
  struct _SectionList * next;
251
 
  char * label;                 /* section label */
252
 
  char * directory;             /* section directory */
253
 
  int flags;
 
199
    struct _SectionList *next;
 
200
    char *label;                /* section label */
 
201
    char *directory;            /* section directory */
 
202
    int flags;
254
203
} SectionList;
255
204
 
256
 
extern char * CreateManpageName(char * entry, int section, int flags);
257
 
extern void AddStandardSections(SectionList **list, char * path);
258
 
extern void AddNewSection(SectionList **list, char * path, char * file, char * label, int flags);
 
205
extern char *CreateManpageName(const char *entry, int section, int flags);
 
206
extern void AddStandardSections(SectionList ** list, const char *path);
 
207
extern void AddNewSection(SectionList ** list, const char *path,
 
208
                          const char *file, const char *label, int flags);