mirror of
https://github.com/libevent/libevent.git
synced 2025-01-20 05:02:55 +08:00
5859c235de
This approach should make the creation of the file more atomic, to fix a bug reported by Dinh. This patch has one change from Zack's original version: it avoids $<, since Dave Hart tells me he thinks that's not so portable. (commit message by nickm)
24 lines
588 B
Sed
24 lines
588 B
Sed
# 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 */
|
|
|
|
s/#\( *\)define /#\1define EVENT__/
|
|
s/#\( *\)undef /#\1undef EVENT__/
|
|
s/#\( *\)if\(n*\)def /#\1if\2def EVENT__/
|