mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
cat: Move visit library to new directory common/visit.
Just code motion.
This commit is contained in:
@@ -88,6 +88,9 @@ SUBDIRS += tests/regressions
|
||||
SUBDIRS += tests/tsk
|
||||
endif
|
||||
|
||||
# Common code used by the tools.
|
||||
SUBDIRS += common/visit
|
||||
|
||||
# libguestfs-test-tool
|
||||
SUBDIRS += test-tool
|
||||
|
||||
|
||||
@@ -113,15 +113,14 @@ virt_log_LDADD = \
|
||||
|
||||
virt_ls_SOURCES = \
|
||||
$(SHARED_SOURCE_FILES) \
|
||||
ls.c \
|
||||
visit.c \
|
||||
visit.h
|
||||
ls.c
|
||||
|
||||
virt_ls_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
||||
-I$(top_srcdir)/common/visit \
|
||||
-I$(top_srcdir)/fish \
|
||||
-I$(srcdir)/../gnulib/lib -I../gnulib/lib
|
||||
|
||||
@@ -130,6 +129,7 @@ virt_ls_CFLAGS = \
|
||||
$(LIBXML2_CFLAGS)
|
||||
|
||||
virt_ls_LDADD = \
|
||||
$(top_builddir)/common/visit/libvisit.la \
|
||||
$(top_builddir)/common/utils/libutils.la \
|
||||
$(top_builddir)/lib/libguestfs.la \
|
||||
$(top_builddir)/fish/libfishcommon.la \
|
||||
|
||||
33
common/visit/Makefile.am
Normal file
33
common/visit/Makefile.am
Normal file
@@ -0,0 +1,33 @@
|
||||
# libguestfs
|
||||
# Copyright (C) 2017 Red Hat Inc.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program 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 General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
include $(top_srcdir)/subdir-rules.mk
|
||||
|
||||
noinst_LTLIBRARIES = libvisit.la
|
||||
|
||||
libvisit_la_SOURCES = \
|
||||
visit.c \
|
||||
visit.h
|
||||
libvisit_la_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DGUESTFS_PRIVATE=1 \
|
||||
-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils
|
||||
libvisit_la_CFLAGS = \
|
||||
$(WARN_CFLAGS) $(WERROR_CFLAGS) \
|
||||
$(GCC_VISIBILITY_HIDDEN)
|
||||
@@ -183,6 +183,7 @@ AC_CONFIG_FILES([Makefile
|
||||
common/errnostring/Makefile
|
||||
common/protocol/Makefile
|
||||
common/utils/Makefile
|
||||
common/visit/Makefile
|
||||
csharp/Makefile
|
||||
customize/Makefile
|
||||
daemon/Makefile
|
||||
|
||||
@@ -24,12 +24,7 @@ EXTRA_DIST = \
|
||||
|
||||
bin_PROGRAMS = virt-diff
|
||||
|
||||
SHARED_SOURCE_FILES = \
|
||||
../cat/visit.h \
|
||||
../cat/visit.c
|
||||
|
||||
virt_diff_SOURCES = \
|
||||
$(SHARED_SOURCE_FILES) \
|
||||
diff.c
|
||||
|
||||
virt_diff_CPPFLAGS = \
|
||||
@@ -37,6 +32,7 @@ virt_diff_CPPFLAGS = \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
||||
-I$(top_srcdir)/common/visit -I$(top_builddir)/common/visit \
|
||||
-I$(top_srcdir)/cat -I$(top_srcdir)/fish \
|
||||
-I$(srcdir)/../gnulib/lib -I../gnulib/lib
|
||||
|
||||
@@ -45,6 +41,7 @@ virt_diff_CFLAGS = \
|
||||
$(LIBXML2_CFLAGS)
|
||||
|
||||
virt_diff_LDADD = \
|
||||
$(top_builddir)/common/visit/libvisit.la \
|
||||
$(top_builddir)/common/utils/libutils.la \
|
||||
$(top_builddir)/lib/libguestfs.la \
|
||||
$(top_builddir)/fish/libfishcommon.la \
|
||||
|
||||
@@ -11,8 +11,6 @@ cat/filesystems.c
|
||||
cat/log.c
|
||||
cat/ls.c
|
||||
cat/tail.c
|
||||
cat/visit.c
|
||||
cat/visit.h
|
||||
common/utils/cleanup.c
|
||||
common/utils/guestfs-internal-frontend-cleanups.h
|
||||
common/utils/guestfs-internal-frontend.h
|
||||
@@ -21,6 +19,8 @@ common/utils/structs-print.c
|
||||
common/utils/structs-print.h
|
||||
common/utils/uefi.c
|
||||
common/utils/utils.c
|
||||
common/visit/visit.c
|
||||
common/visit/visit.h
|
||||
customize/crypt-c.c
|
||||
customize/dummy.c
|
||||
customize/perl_edit-c.c
|
||||
|
||||
@@ -98,6 +98,10 @@ and the daemon running inside the appliance is defined here.
|
||||
|
||||
Various utility functions used throughout the library and tools.
|
||||
|
||||
=item F<common/visit>
|
||||
|
||||
Recursively visit a guestfs filesystem hierarchy.
|
||||
|
||||
=back
|
||||
|
||||
=item F<contrib>
|
||||
|
||||
@@ -70,7 +70,7 @@ SOURCES_ML = \
|
||||
checksums.ml
|
||||
|
||||
SOURCES_C = \
|
||||
../cat/visit.c \
|
||||
../common/visit/visit.c \
|
||||
../fish/decrypt.c \
|
||||
../fish/keys.c \
|
||||
../fish/progress.c \
|
||||
@@ -112,7 +112,7 @@ libmllib_a_CPPFLAGS = \
|
||||
-I$(shell $(OCAMLC) -where) \
|
||||
-I$(top_srcdir)/common/utils \
|
||||
-I$(top_srcdir)/lib \
|
||||
-I$(top_srcdir)/cat \
|
||||
-I$(top_srcdir)/common/visit \
|
||||
-I$(top_srcdir)/fish
|
||||
libmllib_a_CFLAGS = \
|
||||
$(WARN_CFLAGS) $(WERROR_CFLAGS) \
|
||||
|
||||
@@ -10,7 +10,6 @@ cat/filesystems.c
|
||||
cat/log.c
|
||||
cat/ls.c
|
||||
cat/tail.c
|
||||
cat/visit.c
|
||||
common/errnostring/errnostring-gperf.c
|
||||
common/errnostring/errnostring.c
|
||||
common/utils/cleanup.c
|
||||
@@ -18,6 +17,7 @@ common/utils/structs-cleanup.c
|
||||
common/utils/structs-print.c
|
||||
common/utils/uefi.c
|
||||
common/utils/utils.c
|
||||
common/visit/visit.c
|
||||
customize/crypt-c.c
|
||||
customize/dummy.c
|
||||
customize/perl_edit-c.c
|
||||
|
||||
Reference in New Issue
Block a user