mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
docs: honour XEN_DUMP_DIR
Use configure to generate xl.cfg and xl manpage. Add the generated files to gitignore. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
ba9f0951da
commit
d7f64ff4e0
5 files changed
+197
-6
No files matched your search
@@ -41,6 +41,8 @@ config/Paths.mk
|
||||
build-*
|
||||
dist/*
|
||||
docs/html/
|
||||
docs/man/xl.cfg.pod.5
|
||||
docs/man/xl.pod.1
|
||||
docs/man1/
|
||||
docs/man5/
|
||||
docs/man8/
|
||||
|
||||
Vendored
+183
-1
@@ -594,6 +594,24 @@ POD2TEXT
|
||||
POD2HTML
|
||||
POD2MAN
|
||||
FIG2DEV
|
||||
XEN_DUMP_DIR
|
||||
XEN_PAGING_DIR
|
||||
XEN_LOCK_DIR
|
||||
XEN_SCRIPT_DIR
|
||||
XEN_CONFIG_DIR
|
||||
INITD_DIR
|
||||
CONFIG_DIR
|
||||
SHAREDIR
|
||||
XEN_LIB_DIR
|
||||
XEN_LIB_STORED
|
||||
XEN_LOG_DIR
|
||||
XEN_RUN_DIR
|
||||
XENFIRMWAREDIR
|
||||
LIBEXEC_INC
|
||||
LIBEXEC_LIB
|
||||
LIBEXEC_BIN
|
||||
LIBEXEC
|
||||
CONFIG_LEAF_DIR
|
||||
target_alias
|
||||
host_alias
|
||||
build_alias
|
||||
@@ -635,6 +653,10 @@ SHELL'
|
||||
ac_subst_files=''
|
||||
ac_user_opts='
|
||||
enable_option_checking
|
||||
with_initddir
|
||||
with_sysconfig_leaf_dir
|
||||
with_libexec_leaf_dir
|
||||
with_xen_dumpdir
|
||||
'
|
||||
ac_precious_vars='build_alias
|
||||
host_alias
|
||||
@@ -1251,6 +1273,21 @@ if test -n "$ac_init_help"; then
|
||||
esac
|
||||
cat <<\_ACEOF
|
||||
|
||||
Optional Packages:
|
||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
||||
--with-initddir=DIR Path to directory with sysv runlevel scripts.
|
||||
[SYSCONFDIR/init.d]
|
||||
--with-sysconfig-leaf-dir=SUBDIR
|
||||
Name of subdirectory in /etc to store runtime
|
||||
options for runlevel scripts and daemons such as
|
||||
xenstored. This should be either "sysconfig" or
|
||||
"default". [sysconfig]
|
||||
--with-libexec-leaf-dir=SUBDIR
|
||||
Name of subdirectory in libexecdir to use.
|
||||
--with-xen-dumpdir=DIR Path to directory for domU crash dumps.
|
||||
[LOCALSTATEDIR/lib/xen/dump]
|
||||
|
||||
Some influential environment variables:
|
||||
FIG2DEV Path to fig2dev tool
|
||||
POD2MAN Path to pod2man tool
|
||||
@@ -1693,7 +1730,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||
|
||||
|
||||
|
||||
ac_config_files="$ac_config_files ../config/Docs.mk"
|
||||
ac_config_files="$ac_config_files ../config/Docs.mk man/xl.cfg.pod.5 man/xl.pod.1"
|
||||
|
||||
ac_aux_dir=
|
||||
for ac_dir in ../ "$srcdir"/../; do
|
||||
@@ -1741,6 +1778,149 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
||||
|
||||
|
||||
|
||||
|
||||
test "x$prefix" = "xNONE" && prefix=$ac_default_prefix
|
||||
test "x$exec_prefix" = "xNONE" && exec_prefix=${prefix}
|
||||
|
||||
if test "$localstatedir" = '${prefix}/var' ; then
|
||||
localstatedir=/var
|
||||
fi
|
||||
|
||||
bindir=`eval echo $bindir`
|
||||
sbindir=`eval echo $sbindir`
|
||||
libdir=`eval echo $libdir`
|
||||
|
||||
if test "x$sysconfdir" = 'x${prefix}/etc' ; then
|
||||
case "$host_os" in
|
||||
*freebsd*)
|
||||
sysconfdir=$prefix/etc
|
||||
;;
|
||||
*solaris*)
|
||||
if test "$prefix" = "/usr" ; then
|
||||
sysconfdir=/etc
|
||||
else
|
||||
sysconfdir=$prefix/etc
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
sysconfdir=/etc
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
||||
# Check whether --with-initddir was given.
|
||||
if test "${with_initddir+set}" = set; then :
|
||||
withval=$with_initddir; initddir_path=$withval
|
||||
else
|
||||
case "$host_os" in
|
||||
*linux*)
|
||||
if test -d $sysconfdir/rc.d/init.d ; then
|
||||
initddir_path=$sysconfdir/rc.d/init.d
|
||||
else
|
||||
initddir_path=$sysconfdir/init.d
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
initddir_path=$sysconfdir/rc.d
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# Check whether --with-sysconfig-leaf-dir was given.
|
||||
if test "${with_sysconfig_leaf_dir+set}" = set; then :
|
||||
withval=$with_sysconfig_leaf_dir; config_leaf_dir=$withval
|
||||
else
|
||||
config_leaf_dir=sysconfig
|
||||
if test ! -d /etc/sysconfig ; then config_leaf_dir=default ; fi
|
||||
fi
|
||||
|
||||
CONFIG_LEAF_DIR=$config_leaf_dir
|
||||
|
||||
|
||||
|
||||
# Check whether --with-libexec-leaf-dir was given.
|
||||
if test "${with_libexec_leaf_dir+set}" = set; then :
|
||||
withval=$with_libexec_leaf_dir; libexec_subdir=$withval
|
||||
else
|
||||
libexec_subdir=$PACKAGE_TARNAME
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# Check whether --with-xen-dumpdir was given.
|
||||
if test "${with_xen_dumpdir+set}" = set; then :
|
||||
withval=$with_xen_dumpdir; xen_dumpdir_path=$withval
|
||||
else
|
||||
xen_dumpdir_path=$localstatedir/lib/xen/dump
|
||||
fi
|
||||
|
||||
|
||||
if test "$libexecdir" = '${exec_prefix}/libexec' ; then
|
||||
case "$host_os" in
|
||||
*netbsd*) ;;
|
||||
*)
|
||||
libexecdir='${exec_prefix}/lib'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
LIBEXEC=`eval echo $libexecdir/$libexec_subdir`
|
||||
|
||||
|
||||
LIBEXEC_BIN=${LIBEXEC}/bin
|
||||
|
||||
LIBEXEC_LIB=${LIBEXEC}/lib
|
||||
|
||||
LIBEXEC_INC=${LIBEXEC}/include
|
||||
|
||||
XENFIRMWAREDIR=${LIBEXEC}/boot
|
||||
|
||||
|
||||
XEN_RUN_DIR=$localstatedir/run/xen
|
||||
|
||||
|
||||
XEN_LOG_DIR=$localstatedir/log/xen
|
||||
|
||||
|
||||
XEN_LIB_STORED=$localstatedir/lib/xenstored
|
||||
|
||||
|
||||
XEN_LIB_DIR=$localstatedir/lib/xen
|
||||
|
||||
|
||||
SHAREDIR=$prefix/share
|
||||
|
||||
|
||||
CONFIG_DIR=$sysconfdir
|
||||
|
||||
|
||||
INITD_DIR=$initddir_path
|
||||
|
||||
|
||||
XEN_CONFIG_DIR=$CONFIG_DIR/xen
|
||||
|
||||
|
||||
XEN_SCRIPT_DIR=$XEN_CONFIG_DIR/scripts
|
||||
|
||||
|
||||
case "$host_os" in
|
||||
*freebsd*) XEN_LOCK_DIR=$localstatedir/lib ;;
|
||||
*netbsd*) XEN_LOCK_DIR=$localstatedir/lib ;;
|
||||
*) XEN_LOCK_DIR=$localstatedir/lock ;;
|
||||
esac
|
||||
|
||||
|
||||
XEN_PAGING_DIR=$localstatedir/lib/xen/xenpaging
|
||||
|
||||
|
||||
XEN_DUMP_DIR=$xen_dumpdir_path
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Extract the first word of "fig2dev", so it can be a program name with args.
|
||||
set dummy fig2dev; ac_word=$2
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||
@@ -2793,6 +2973,8 @@ for ac_config_target in $ac_config_targets
|
||||
do
|
||||
case $ac_config_target in
|
||||
"../config/Docs.mk") CONFIG_FILES="$CONFIG_FILES ../config/Docs.mk" ;;
|
||||
"man/xl.cfg.pod.5") CONFIG_FILES="$CONFIG_FILES man/xl.cfg.pod.5" ;;
|
||||
"man/xl.pod.1") CONFIG_FILES="$CONFIG_FILES man/xl.pod.1" ;;
|
||||
|
||||
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
||||
esac
|
||||
|
||||
+8
-1
@@ -5,13 +5,20 @@ AC_PREREQ([2.67])
|
||||
AC_INIT([Xen Hypervisor Documentation], m4_esyscmd([../version.sh ../xen/Makefile]),
|
||||
[xen-devel@lists.xen.org], [xen], [http://www.xen.org/])
|
||||
AC_CONFIG_SRCDIR([misc/xen-command-line.markdown])
|
||||
AC_CONFIG_FILES([../config/Docs.mk])
|
||||
AC_CONFIG_FILES([
|
||||
../config/Docs.mk
|
||||
man/xl.cfg.pod.5
|
||||
man/xl.pod.1
|
||||
])
|
||||
AC_CONFIG_AUX_DIR([../])
|
||||
|
||||
# M4 Macro includes
|
||||
m4_include([../m4/docs_tool.m4])
|
||||
m4_include([../m4/path_or_fail.m4])
|
||||
m4_include([../m4/features.m4])
|
||||
m4_include([../m4/paths.m4])
|
||||
|
||||
AX_XEN_EXPAND_CONFIG()
|
||||
|
||||
AX_DOCS_TOOL_PROG([FIG2DEV], [fig2dev])
|
||||
AX_DOCS_TOOL_PROG([POD2MAN], [pod2man])
|
||||
|
||||
@@ -343,12 +343,12 @@ destroy`.
|
||||
|
||||
=item B<coredump-destroy>
|
||||
|
||||
write a "coredump" of the domain to F</var/lib/xen/dump/NAME> and then
|
||||
write a "coredump" of the domain to F<@XEN_DUMP_DIR@/NAME> and then
|
||||
destroy the domain.
|
||||
|
||||
=item B<coredump-restart>
|
||||
|
||||
write a "coredump" of the domain to F</var/lib/xen/dump/NAME> and then
|
||||
write a "coredump" of the domain to F<@XEN_DUMP_DIR@/NAME> and then
|
||||
restart the domain.
|
||||
|
||||
=item B<soft-reset>
|
||||
@@ -2017,7 +2017,7 @@ natively or via hardware backwards compatibility support.
|
||||
=head1 FILES
|
||||
|
||||
F</etc/xen/NAME.cfg>
|
||||
F</var/lib/xen/dump/NAME>
|
||||
F<@XEN_DUMP_DIR@/NAME>
|
||||
|
||||
=head1 BUGS
|
||||
|
||||
@@ -280,7 +280,7 @@ Change the domain name of I<domain-id> to I<new-name>.
|
||||
Dumps the virtual machine's memory for the specified domain to the
|
||||
I<filename> specified, without pausing the domain. The dump file will
|
||||
be written to a distribution specific directory for dump files. Such
|
||||
as: /var/lib/xen/dump.
|
||||
as: @XEN_DUMP_DIR@/dump.
|
||||
|
||||
=item B<help> [I<--long>]
|
||||
|
||||