diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-11-23 09:39:21 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-11-23 09:39:21 +0000 |
commit | fbeac4e8ea17ba34c44c52f9dadf2d8b450ec371 (patch) | |
tree | d4c2b5f1becc6d98327ff6ceac754ec27727cc18 /usr.bin/rcs/rcsclean.c | |
parent | f0b99874bcc46c2cd20298d03ab79b8024bbba3f (diff) |
initial bits for -T support;
Diffstat (limited to 'usr.bin/rcs/rcsclean.c')
-rw-r--r-- | usr.bin/rcs/rcsclean.c | 10 |
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; |