module_exit(lttng_events_exit);
-#include "extra_version/patches.i"
+#include <generated/patches.i>
#ifdef LTTNG_EXTRA_VERSION_GIT
MODULE_INFO(extra_version_git, LTTNG_EXTRA_VERSION_GIT);
#endif
module_exit(lttng_exit);
-#include "extra_version/patches.i"
+#include <generated/patches.i>
#ifdef LTTNG_EXTRA_VERSION_GIT
MODULE_INFO(extra_version_git, LTTNG_EXTRA_VERSION_GIT);
#endif
# First argument is the path to the lttng modules sources.
TOP_LTTNG_MODULES_DIR="$1"
+INCLUDE_DIR="include/generated"
+
if ! test -d "${TOP_LTTNG_MODULES_DIR}"; then
exit 1
fi
find "${TOP_LTTNG_MODULES_DIR}/extra_version/patches/" -maxdepth 1 ! -name 'README' -type f -printf '%f\n' | sort -r \
| sed -E 's/[^a-zA-Z0-9 \.]/-/g ; s/(.*)/MODULE_INFO(extra_version_patch, "\1");/g' >"${TMPFILE}" 2>/dev/null
-if test ! -f "${TOP_LTTNG_MODULES_DIR}/extra_version/patches.i" || \
- test x"$(cat "${TMPFILE}")" != x"$(cat "${TOP_LTTNG_MODULES_DIR}/extra_version/patches.i")"; then
- mv "${TMPFILE}" "${TOP_LTTNG_MODULES_DIR}/extra_version/patches.i"
+if test ! -d "${TOP_LTTNG_MODULES_DIR}/${INCLUDE_DIR}"; then
+ mkdir "${TOP_LTTNG_MODULES_DIR}/${INCLUDE_DIR}"
+fi
+
+if test ! -f "${TOP_LTTNG_MODULES_DIR}/${INCLUDE_DIR}/patches.i" || \
+ test x"$(cat "${TMPFILE}")" != x"$(cat "${TOP_LTTNG_MODULES_DIR}/${INCLUDE_DIR}/patches.i")"; then
+ mv "${TMPFILE}" "${TOP_LTTNG_MODULES_DIR}/${INCLUDE_DIR}/patches.i"
fi
rm -f "${TMPFILE}"