Made leafname triggered emulation more similar to -as emulation

Thomas Schmitt 15 years ago
parent e5ba798b14
commit 4ea0e15acb
  1. 30
  2. 26

@ -2,7 +2,7 @@
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH XORRISO 1 "Jun, 21, 2008"
.TH XORRISO 1 "Jul, 08, 2008"
.\" Please adjust this date whenever revising the manpage.
.\" Some roff macros, for reference:
@ -1791,6 +1791,12 @@ standard output.
Personalites "\fBgenisoimage\fR" and "\fBgenisofs\fR"
are aliases for "mkisofs".
If xorriso is started with one of the leafnames "xorrisofs", "genisofs",
"mkisofs", or "genisoimage", then it automatically prepends -as "mkisofs"
to the command line arguments. I.e. all arguments will be interpreted mkisofs
style until "--" is encountered. From then on, options are interpreted
as xorriso options.
Personality "\fBcdrecord\fR" accepts the options listed with:
@ -2109,7 +2115,7 @@ first and only session to the output drive.
-commit -eject all
.B Write a ISO image into a pipe (single-session only)
.B Write a ISO image into a pipe
\fB$\fR xorriso -outdev - \\
@ -2125,6 +2131,26 @@ or filtering.
xorriso -as cdrecord -v dev=/dev/sr0 blank=fast -eject -
.B Let xorriso work underneath growisofs
growisofs expects an ISO formatter program which understands options -o, -C,
-M. If xorriso gets started by name "xorrisofs" then it is suitable for that.
\fB$\fR export MKISOFS="xorrisofs"
\fB$\fR growisofs -Z /dev/dvd -R -J /some/files
\fB$\fR growisofs -M /dev/dvd -R -J /more/files
If no "xorrisofs" is available on your system, then you will have to create
a link pointing to the xorriso binary and tell growisofs to use it. E.g. by:
\fB$\fR ln -s $(which xorriso) "$HOME/xorrisofs"
\fB$\fR export MKISOFS="$HOME/xorrisofs"
growisofs has excellent burn capabilities with DVD and BD.
It does not emulate session history on overwriteable media, though.
.B Adjust thresholds for verbosity, exit value and program abort
Be quite verbous, exit 32 if severity "FAILURE" was encountered,
do not abort prematurely but forcibly go on until the end of commands.

@ -2805,7 +2805,7 @@ int Xorriso_new(struct XorrisO ** xorriso,char *progname, int flag)
m->initial_wdx[0]= 0;
m->no_rc= 0;
m->permanent_emulation= 0;
m->argument_emulation= 0;
m->rc_filename_count= Xorriso_rc_nuM;
@ -2935,7 +2935,7 @@ int Xorriso_new(struct XorrisO ** xorriso,char *progname, int flag)
m->allow_restore= 1;
else if(strcmp(leafname, "xorrisofs")==0 || strcmp(leafname, "genisofs")==0 ||
strcmp(leafname, "mkisofs")==0 || strcmp(leafname, "genisoimage")==0) {
m->permanent_emulation= -1; /* becomeis +1 before argument interpretation */
m->argument_emulation= 1;
Xorriso_protect_stdout(*xorriso, 0);
ret= Exclusions_new(&(m->disk_exclusions), 0);
@ -12191,6 +12191,7 @@ return:
bit0= recursion
bit1= these are command line arguments (for xorriso->argument_emulation)
int ret, was_dashed, end_ret, num1, num2;
@ -12205,14 +12206,15 @@ return:
if(xorriso->permanent_emulation==1) {
ret= Xorriso_as_genisofs(xorriso, argc, argv, idx, 0);
goto eval_any_problems;
xorriso->permanent_emulation= 0;
{ret= 1; goto ex;}
if(flag&2) {
if(xorriso->argument_emulation==1) {
ret= Xorriso_as_genisofs(xorriso, argc, argv, idx, 0);
xorriso->argument_emulation= 0;
goto eval_any_problems;
{ret= 1; goto ex;}
xorriso->prepended_wd= 0;
@ -13069,9 +13071,7 @@ int Xorriso_main(int argc, char **argv)
/* Interpret program arguments */
i= 1;
xorriso->permanent_emulation= -xorriso->permanent_emulation;
ret= Xorriso_interpreter(xorriso,argc,argv,&i,0);
ret= Xorriso_interpreter(xorriso,argc,argv,&i,2);
goto end_sucessfully;