File: make-event-config.sed

package info (click to toggle)
lldpd 1.0.18-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 9,524 kB
  • sloc: ansic: 90,321; sh: 5,081; python: 1,397; makefile: 659; awk: 19
file content (27 lines) | stat: -rw-r--r-- 731 bytes parent folder | download | duplicates (25)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Sed script to postprocess config.h into event-config.h.

1i\
/* event2/event-config.h\
 *\
 * This file was generated by autoconf when libevent was built, and post-\
 * processed by Libevent so that its macros would have a uniform prefix.\
 *\
 * DO NOT EDIT THIS FILE.\
 *\
 * Do not rely on macros in this file existing in later versions.\
 */\
\
#ifndef EVENT2_EVENT_CONFIG_H_INCLUDED_\
#define EVENT2_EVENT_CONFIG_H_INCLUDED_\

$a\
\
#endif /* event2/event-config.h */

/#\( *\)undef STDC_HEADERS\>/b
/#\( *\)define STDC_HEADERS\>/b

# Only rewrite symbols starting with capitals
s/#\( *\)define \([A-Z]\)/#\1define EVENT__\2/
s/#\( *\)undef \([A-Z]\)/#\1undef EVENT__\2/
s/#\( *\)if\(n*\)def \([A-Z]\)/#\1if\2def EVENT__\2/