Brought xorriso-dd-target into libisoburn

This commit is contained in:
Thomas Schmitt 2019-12-08 15:18:11 +01:00
parent 2a8894a5c6
commit 03ae735c85
4 changed files with 58 additions and 4 deletions

View File

@ -1,3 +1,4 @@
Thomas Schmitt Thomas Schmitt
Vreixo Formoso Lopes Vreixo Formoso Lopes
Nio Wiklund alias sudodus

View File

@ -180,9 +180,12 @@ xorriso_make_xorriso_1_CFLAGS =
xorriso_make_xorriso_1_LDADD = xorriso_make_xorriso_1_LDADD =
xorriso_make_xorriso_1_SOURCES = xorriso/make_xorriso_1.c xorriso_make_xorriso_1_SOURCES = xorriso/make_xorriso_1.c
# A Proof-of-concept for frontends # A Proof-of-concept for frontends, and xorriso-dd-target if on Linux kernel
bin_SCRIPTS = \ bin_SCRIPTS = \
frontend/xorriso-tcltk frontend/xorriso-tcltk \
$(XORRISO_DD_TARGET)
EXTRA_SCRIPTS = xorriso-dd-target/xorriso-dd-target
## ========================================================================= ## ## ========================================================================= ##
@ -242,13 +245,25 @@ man_MANS = \
xorriso/xorriso.1 \ xorriso/xorriso.1 \
xorriso/xorrisofs.1 \ xorriso/xorrisofs.1 \
xorriso/xorrecord.1 \ xorriso/xorrecord.1 \
xorriso/xorriso-tcltk.1 xorriso/xorriso-tcltk.1 \
$(XORRISO_DD_TARGET_MAN)
EXTRA_MANS = xorriso-dd-target/xorriso-dd-target.1
info_TEXINFOS = \ info_TEXINFOS = \
xorriso/xorriso.texi \ xorriso/xorriso.texi \
xorriso/xorrisofs.texi \ xorriso/xorrisofs.texi \
xorriso/xorrecord.texi \ xorriso/xorrecord.texi \
xorriso/xorriso-tcltk.texi xorriso/xorriso-tcltk.texi \
xorriso-dd-target/xorriso-dd-target.texi
# xorriso-dd-target.texi is hardcoded for now because of
# Makefile.am: error: texinfo file '@XORRISO_DD_TARGET_TEXI@' has
# unrecognized extension
# $(XORRISO_DD_TARGET_TEXI)
#
# EXTRA_TEXINFOS = xorriso-dd-target/xorriso-dd-target.texi
# To have a file in releng_generated_data. If the directory itself is listed # To have a file in releng_generated_data. If the directory itself is listed
# in Makefile.am EXTRA_DIST, then its .svn subdir gets into the tarball. # in Makefile.am EXTRA_DIST, then its .svn subdir gets into the tarball.
@ -270,6 +285,7 @@ EXTRA_DIST = \
frontend/sh_on_named_pipes.sh \ frontend/sh_on_named_pipes.sh \
frontend/xorriso_broker.sh \ frontend/xorriso_broker.sh \
frontend/grub-mkrescue-sed.sh \ frontend/grub-mkrescue-sed.sh \
xorriso-dd-target/xorriso-dd-target \
README \ README \
AUTHORS \ AUTHORS \
CONTRIBUTORS \ CONTRIBUTORS \

20
README
View File

@ -250,6 +250,23 @@ Note: xorriso by default prefixes "stdio:" to addresses outside the /dev tree
if they do not lead to an optical drive device file. if they do not lead to an optical drive device file.
xorriso-dd-target
libisoburn comes with a script named
xorriso-dd-target/xorriso-dd-target
which uses the util-linux program lsblk to find suitable hard-disk-like
target devices for copying hard-disk bootable ISO images onto them. Such images
are offered by GNU/Linux distributions for installing their system.
xorriso-dd-target gets installed only if ./configure detects to run on a
GNU/Linux system. It refuses to start on non-Linux kernels or if program lsblk
is not found in /usr/sbin, /sbin, /usr/bin, /bin.
For introduction, examples, and details see in the build directory
man xorriso-dd-target/xorriso-dd-target.1
info xorriso-dd-target/xorriso-dd-target.info
Testing Testing
For automated and manual tests of xorriso's functionality see file For automated and manual tests of xorriso's functionality see file
@ -322,3 +339,6 @@ Libburn. By Derek Foreman <derek@signalmarketing.com> and
Copyright (C) 2002-2006 Derek Foreman and Ben Jansens Copyright (C) 2002-2006 Derek Foreman and Ben Jansens
libisoburn does not stem from their code. libisoburn does not stem from their code.
The libisoburn release contains xorriso-dd-target
Copyright (C) 2019 Nio Wiklund alias sudodus, Thomas Schmitt

View File

@ -134,6 +134,23 @@ dnl Important: Must be performed _after_ TARGET_SHIZZLE
dnl dnl
LIBBURNIA_SET_PKGCONFIG LIBBURNIA_SET_PKGCONFIG
dnl xorriso-dd-target is addicted to the Linux kernel and util-linux lsblk
if uname -s | grep '^Linux' >/dev/null
then
XORRISO_DD_TARGET=xorriso-dd-target/xorriso-dd-target
XORRISO_DD_TARGET_MAN=xorriso-dd-target/xorriso-dd-target.1
XORRISO_DD_TARGET_TEXI=xorriso-dd-target/xorriso-dd-target.texi
echo "enabled installation of xorriso-dd-target/xorriso-dd-target"
else
XORRISO_DD_TARGET=
XORRISO_DD_TARGET_MAN=
XORRISO_DD_TARGET_TEXI=
echo "disabled installation of xorriso-dd-target/xorriso-dd-target"
fi
AC_SUBST(XORRISO_DD_TARGET)
AC_SUBST(XORRISO_DD_TARGET_MAN)
AC_SUBST(XORRISO_DD_TARGET_TEXI)
AC_ARG_ENABLE(libreadline, AC_ARG_ENABLE(libreadline,
[ --enable-libreadline Enable use of libreadline by xorriso, default=yes], [ --enable-libreadline Enable use of libreadline by xorriso, default=yes],
, enable_libreadline=yes) , enable_libreadline=yes)