From 24ae1eb837a8bb677dd453e04d69f366f2a990f3 Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Mon, 21 Nov 2005 16:20:30 +0000 Subject: enable `-xsuffixes' support as it has been added a few days ago in rcs_statfile(); niallo ok --- usr.bin/rcs/rcsdiff.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'usr.bin/rcs/rcsdiff.c') diff --git a/usr.bin/rcs/rcsdiff.c b/usr.bin/rcs/rcsdiff.c index 9c808935f66..b0890fcd5c1 100644 --- a/usr.bin/rcs/rcsdiff.c +++ b/usr.bin/rcs/rcsdiff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsdiff.c,v 1.16 2005/11/21 15:01:10 xsa Exp $ */ +/* $OpenBSD: rcsdiff.c,v 1.17 2005/11/21 16:20:29 xsa Exp $ */ /* * Copyright (c) 2005 Joris Vink * All rights reserved. @@ -54,7 +54,7 @@ rcsdiff_main(int argc, char **argv) strlcpy(diffargs, "diff", sizeof(diffargs)); - while ((ch = rcs_getopt(argc, argv, "cnqr:uV")) != -1) { + while ((ch = rcs_getopt(argc, argv, "cnqr:uVx:")) != -1) { switch (ch) { case 'c': strlcat(diffargs, " -c", sizeof(diffargs)); @@ -71,9 +71,6 @@ rcsdiff_main(int argc, char **argv) strlcat(diffargs, " -u", sizeof(diffargs)); diff_format = D_UNIFIED; break; - case 'V': - printf("%s\n", rcs_version); - exit(0); case 'r': if (rev == RCS_HEAD_REV) { if ((rev = rcsnum_parse(rcs_optarg)) == NULL) { @@ -87,6 +84,12 @@ rcsdiff_main(int argc, char **argv) } } break; + case 'V': + printf("%s\n", rcs_version); + exit(0); + case 'x': + rcs_suffixes = rcs_optarg; + break; default: (usage)(); exit (1); -- cgit v1.2.3