version 1.160, 2015/12/29 19:12:56 |
version 1.161, 2016/07/04 01:39:12 |
|
|
|
|
#include "rcsprog.h" |
#include "rcsprog.h" |
|
|
#define RCSPROG_OPTSTRING "A:a:b::c:e::ik:Ll::m:Mn:N:o:qt::TUu::Vx::z::" |
#define RCSPROG_OPTSTRING "A:a:b::c:e::Iik:Ll::m:Mn:N:o:qt::TUu::Vx::z::" |
|
|
const char rcs_version[] = "OpenRCS 4.5"; |
const char rcs_version[] = "OpenRCS 4.5"; |
|
|
|
|
elist = rcs_optarg; |
elist = rcs_optarg; |
rcsflags |= RCSPROG_EFLAG; |
rcsflags |= RCSPROG_EFLAG; |
break; |
break; |
|
case 'I': |
|
rcsflags |= INTERACTIVE; |
|
break; |
case 'i': |
case 'i': |
flags |= RCS_CREATE; |
flags |= RCS_CREATE; |
break; |
break; |
|
|
} |
} |
|
|
if (rcsflags & DESCRIPTION) { |
if (rcsflags & DESCRIPTION) { |
if (rcs_set_description(file, descfile) == -1) { |
if (rcs_set_description(file, descfile, rcsflags) == -1) { |
warn("%s", descfile); |
warn("%s", descfile); |
rcs_close(file); |
rcs_close(file); |
continue; |
continue; |
} |
} |
} |
} |
else if (flags & RCS_CREATE) { |
else if (flags & RCS_CREATE) { |
if (rcs_set_description(file, NULL) == -1) { |
if (rcs_set_description(file, NULL, rcsflags) == -1) { |
warn("stdin"); |
warn("stdin"); |
rcs_close(file); |
rcs_close(file); |
continue; |
continue; |