libqb/include/qb/qbconfig.h.in
Chrissie Caulfield 6d35611524
doxygen2man: Add option to read copyright line from the header file (#415)
* doxygen2man: Add option to read copyright line from the header file

This should help make builds reproducible.

I tried various methods of getting the date, using 'git' is no use as
it could be run from a tarball, using the file date doesn't work either
so this seems a reasonable compromise.

* man: Use SOURCE_EPOCH to make manpage dates reproducible

Also add build-aux/update-copyright.sh to keep header file
copyright lines up-to-date.

All code taken from knet
2020-09-09 15:06:55 +01:00

50 lines
1.6 KiB
C

/*
* Copyright (C) 2010-2020 Red Hat, Inc.
*
* All rights reserved.
*
* Author: Angus Salkeld <asalkeld@redhat.com>
*
* libqb is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 2.1 of the License, or
* (at your option) any later version.
*
* libqb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with libqb. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef QB_CONFIG_H_DEFINED
#define QB_CONFIG_H_DEFINED
#include <qb/qbdefs.h> /* QB_PP_STRINGIFY */
/* need atomic memory barrier */
#undef QB_ATOMIC_OP_MEMORY_BARRIER_NEEDED
/* versioning info: MAJOR, MINOR, MICRO, and REST components;
note that static compile-time info is not that useful as consulting
the respectively named members of qb_version struct constant under
@c qb_ver identifier (or @c qb_ver_str equivalent of the local
upper-cased value) directly from libqb in run-time (see qbutil.h),
but that was only introduced after v1.0.2 */
#undef QB_VER_MAJOR
#undef QB_VER_MINOR
#undef QB_VER_MICRO
#undef QB_VER_REST
#define QB_VER_STR \
QB_PP_STRINGIFY(QB_VER_MAJOR) \
"." \
QB_PP_STRINGIFY(QB_VER_MINOR) \
"." \
QB_PP_STRINGIFY(QB_VER_MICRO) \
QB_VER_REST
#endif /* QB_CONFIG_H_DEFINED */