btrfs-progs: libbtrfs: move version.h to the directory

The header is part of the public API and not used by any other code so
move it to the other files.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2023-01-05 14:18:07 +01:00
parent e8d8949d38
commit d4c7f01e37
5 changed files with 6 additions and 6 deletions

2
.gitignore vendored
View file

@ -3,7 +3,7 @@
*.o.d
/.cc-defines.h
/version.h
/libbtrfs/version.h
/btrfs
/btrfs.static
/btrfs-map-logical

View file

@ -221,7 +221,7 @@ libbtrfs_objects = \
libbtrfs_headers = libbtrfs/send-stream.h libbtrfs/send-utils.h libbtrfs/send.h kernel-lib/rbtree.h \
kernel-lib/list.h kernel-lib/rbtree_types.h libbtrfs/kerncompat.h \
libbtrfs/ioctl.h libbtrfs/ctree.h version.h
libbtrfs/ioctl.h libbtrfs/ctree.h libbtrfs/version.h
libbtrfsutil_major := $(shell sed -rn 's/^\#define BTRFS_UTIL_VERSION_MAJOR ([0-9])+$$/\1/p' libbtrfsutil/btrfsutil.h)
libbtrfsutil_minor := $(shell sed -rn 's/^\#define BTRFS_UTIL_VERSION_MINOR ([0-9])+$$/\1/p' libbtrfsutil/btrfsutil.h)
libbtrfsutil_patch := $(shell sed -rn 's/^\#define BTRFS_UTIL_VERSION_PATCH ([0-9])+$$/\1/p' libbtrfsutil/btrfsutil.h)
@ -532,7 +532,7 @@ endif
#
static: $(progs_static) libbtrfs.a libbtrfsutil.a
version.h: version.h.in configure.ac
libbtrfs/version.h: libbtrfs/version.h.in configure.ac
@echo " [SH] $@"
$(Q)bash ./config.status --silent $@
@ -834,7 +834,7 @@ clean-doc:
clean-gen:
@echo "Cleaning Generated Files"
$(Q)$(RM) -rf -- version.h config.status config.cache config.log \
$(Q)$(RM) -rf -- libbtrfs/version.h config.status config.cache config.log \
configure.lineno config.status.lineno Makefile.inc \
Documentation/Makefile tags TAGS \
cscope.files cscope.out cscope.in.out cscope.po.out \

View file

@ -426,7 +426,7 @@ AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile.inc
Documentation/Makefile
version.h
libbtrfs/version.h
libbtrfsutil/libbtrfsutil.pc
])

View file

@ -18,7 +18,7 @@
#if BTRFS_FLAT_INCLUDES
#include "kerncompat.h"
#include "version.h"
#include "libbtrfs/version.h"
#include "kernel-lib/rbtree.h"
#include "kernel-lib/list.h"
#include "kernel-shared/ctree.h"