timestamper/.ide/change_workspace.pl
Jonathan Bernard 99d04935cb Implemented timeline selection.
* Added personal VIM ide extension.
* Implemented timeline selection (resolves D0007)
* Slightly restyled the new timeline button and timeline list menu.
2011-06-10 11:49:45 -05:00

27 lines
379 B
Perl
Executable File

#!/usr/bin/perl -w
my @files=`ls vim-views/ | grep view`;
my $cwd=`pwd`;
chomp($cwd);
$cwd=~s!(.*?)/VBS!$1!;
print $cwd;
chdir("vim-views");
foreach my $file (@files) {
chomp($file);
system("mv", "$file", "$file.bak");
open(IN,"<$file.bak");
open(OUT, ">$file");
while(<IN>) {
s!(edit\s).*?(/VBS.*)!$1$cwd$2!;
print OUT;
}
close(IN);
close(OUT);
}