summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcsclean.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-11-21 16:20:30 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-11-21 16:20:30 +0000
commit24ae1eb837a8bb677dd453e04d69f366f2a990f3 (patch)
tree824fb3a3918b5a9f0248786948eb7797ba308d14 /usr.bin/rcs/rcsclean.c
parent0d73ecfdaec0cb177f249635d82d7db9568a689c (diff)
enable `-xsuffixes' support as it has been added a few days ago
in rcs_statfile(); niallo ok
Diffstat (limited to 'usr.bin/rcs/rcsclean.c')
-rw-r--r--usr.bin/rcs/rcsclean.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcsclean.c b/usr.bin/rcs/rcsclean.c
index 0a5e3c55b68..3854b8a28da 100644
--- a/usr.bin/rcs/rcsclean.c
+++ b/usr.bin/rcs/rcsclean.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsclean.c,v 1.14 2005/11/17 18:14:12 xsa Exp $ */
+/* $OpenBSD: rcsclean.c,v 1.15 2005/11/21 16:20:29 xsa Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -53,7 +53,7 @@ rcsclean_main(int argc, char **argv)
rev = RCS_HEAD_REV;
- while ((ch = rcs_getopt(argc, argv, "k:n::q::r:u::V")) != -1) {
+ while ((ch = rcs_getopt(argc, argv, "k:n::q::r:u::Vx:")) != -1) {
switch (ch) {
case 'k':
kflag = rcs_kflag_get(rcs_optarg);
@@ -82,6 +82,9 @@ rcsclean_main(int argc, char **argv)
case 'V':
printf("%s\n", rcs_version);
exit(0);
+ case 'x':
+ rcs_suffixes = rcs_optarg;
+ break;
default:
break;
}