From 110e5bfcc1b3eb1918eac492110fb185e058eb77 Mon Sep 17 00:00:00 2001 From: Ward Wouts Date: Sat, 3 Jan 2004 09:07:51 +0000 Subject: [PATCH] non existing files should be editable --- mycp/mycp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mycp/mycp b/mycp/mycp index cd36694..368fa0d 100755 --- a/mycp/mycp +++ b/mycp/mycp @@ -71,8 +71,16 @@ if ( $cvspath ) { } } } else { - print "$_ is not a file, skipping. Press enter to continue.\n"; - my $enter = <>; + if ( $option{e} ) { + &edit($_); # edit file + unless (&cmptocvs($_)) { # if changed... then: + &cvsupdate($_); # copy file to cvs & check in into cvs + # copy file back; don't change permissions + } + } else { + print "$_ is not a file, skipping. Press enter to continue.\n"; + my $enter = <>; + } } } } else {