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 {