non existing files should be editable
This commit is contained in:
parent
3d9944edac
commit
110e5bfcc1
1 changed files with 10 additions and 2 deletions
|
|
@ -70,11 +70,19 @@ if ( $cvspath ) {
|
||||||
# copy file back; don't change permissions
|
# copy file back; don't change permissions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
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 {
|
} else {
|
||||||
print "$_ is not a file, skipping. Press enter to continue.\n";
|
print "$_ is not a file, skipping. Press enter to continue.\n";
|
||||||
my $enter = <>;
|
my $enter = <>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
foreach ( @ARGV ) {
|
foreach ( @ARGV ) {
|
||||||
&backup($_);
|
&backup($_);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue