=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/release.c,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/usr.bin/cvs/release.c 2005/05/20 20:00:53 1.6 --- src/usr.bin/cvs/release.c 2005/05/24 04:12:25 1.7 *************** *** 1,4 **** ! /* $OpenBSD: release.c,v 1.6 2005/05/20 20:00:53 joris Exp $ */ /* * Copyright (c) 2005 Xavier Santolaria * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: release.c,v 1.7 2005/05/24 04:12:25 jfb Exp $ */ /* * Copyright (c) 2005 Xavier Santolaria * All rights reserved. *************** *** 42,70 **** extern char *__progname; ! static int cvs_release_options(char *, int, char **, int *); ! static int cvs_release_sendflags(struct cvsroot *); ! static int cvs_release_yesno(void); ! static int cvs_release_dir(CVSFILE *, void *); ! struct cvs_cmd_info cvs_release = { ! cvs_release_options, ! cvs_release_sendflags, cvs_release_dir, ! NULL, NULL, ! CF_IGNORE | CF_KNOWN | CF_NOFILES | CF_RECURSE, ! CVS_REQ_RELEASE, CVS_CMD_SENDDIR | CVS_CMD_SENDARGS2 | CVS_CMD_ALLOWSPEC }; static int dflag; /* -d option */ static int ! cvs_release_options(char *opt, int argc, char **argv, int *arg) { int ch; ! while ((ch = getopt(argc, argv, opt)) != -1) { switch (ch) { case 'd': dflag = 1; --- 42,77 ---- extern char *__progname; ! static int cvs_release_init (struct cvs_cmd *, int, char **, int *); ! static int cvs_release_pre_exec (struct cvsroot *); ! static int cvs_release_yesno (void); ! static int cvs_release_dir (CVSFILE *, void *); ! struct cvs_cmd cvs_cmd_release = { ! CVS_OP_RELEASE, CVS_REQ_RELEASE, "release", ! { }, ! "Release", ! "[-d]", ! "d", ! NULL, ! 0, ! cvs_release_init, ! cvs_release_pre_exec, cvs_release_dir, ! cvs_release_dir, ! NULL, ! NULL, CVS_CMD_SENDDIR | CVS_CMD_SENDARGS2 | CVS_CMD_ALLOWSPEC }; static int dflag; /* -d option */ static int ! cvs_release_init(struct cvs_cmd *cmd, int argc, char **argv, int *arg) { int ch; ! while ((ch = getopt(argc, argv, cmd->cmd_opts)) != -1) { switch (ch) { case 'd': dflag = 1; *************** *** 85,91 **** } static int ! cvs_release_sendflags(struct cvsroot *root) { if (dflag && cvs_sendarg(root, "-d", 0) < 0) return (CVS_EX_PROTO); --- 92,98 ---- } static int ! cvs_release_pre_exec(struct cvsroot *root) { if (dflag && cvs_sendarg(root, "-d", 0) < 0) return (CVS_EX_PROTO);