Created
June 14, 2010 13:47
-
-
Save keithshep/437701 to your computer and use it in GitHub Desktop.
Scans svn dir for modified files and tkdiffs them
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $status_output = `svn status @ARGV`; | |
my @split_status_lines = split(/\n/, $status_output); | |
foreach(@split_status_lines) | |
{ | |
if($_ =~ /^M.{5}\s+(.*)$/) | |
{ | |
my @command_and_args = ("tkdiff", $1, "&"); | |
print join(" ", @command_and_args) . "\n"; | |
system(join(" ", @command_and_args)) == 0 | |
or die "command failed"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment