summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcsclean.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-11-23 09:39:21 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-11-23 09:39:21 +0000
commitfbeac4e8ea17ba34c44c52f9dadf2d8b450ec371 (patch)
treed4c2b5f1becc6d98327ff6ceac754ec27727cc18 /usr.bin/rcs/rcsclean.c
parentf0b99874bcc46c2cd20298d03ab79b8024bbba3f (diff)
initial bits for -T support;
Diffstat (limited to 'usr.bin/rcs/rcsclean.c')
-rw-r--r--usr.bin/rcs/rcsclean.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/rcs/rcsclean.c b/usr.bin/rcs/rcsclean.c
index 3854b8a28da..9fae89016cb 100644
--- a/usr.bin/rcs/rcsclean.c
+++ b/usr.bin/rcs/rcsclean.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsclean.c,v 1.15 2005/11/21 16:20:29 xsa Exp $ */
+/* $OpenBSD: rcsclean.c,v 1.16 2005/11/23 09:39:20 xsa Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -46,14 +46,15 @@ static int uflag = 0;
int
rcsclean_main(int argc, char **argv)
{
- int i, ch;
+ int i, ch, flags;
RCSNUM *rev;
DIR *dirp;
struct dirent *dp;
+ flags = 0;
rev = RCS_HEAD_REV;
- while ((ch = rcs_getopt(argc, argv, "k:n::q::r:u::Vx:")) != -1) {
+ while ((ch = rcs_getopt(argc, argv, "k:n::q::r:Tu::Vx:")) != -1) {
switch (ch) {
case 'k':
kflag = rcs_kflag_get(rcs_optarg);
@@ -75,6 +76,9 @@ rcsclean_main(int argc, char **argv)
case 'r':
rcs_set_rev(rcs_optarg, &rev);
break;
+ case 'T':
+ flags |= PRESERVETIME;
+ break;
case 'u':
rcs_set_rev(rcs_optarg, &rev);
uflag = 1;