Skip to content

Instantly share code, notes, and snippets.

@keithshep
Created June 14, 2010 13:47
Show Gist options
  • Save keithshep/437701 to your computer and use it in GitHub Desktop.
Save keithshep/437701 to your computer and use it in GitHub Desktop.
Scans svn dir for modified files and tkdiffs them
#!/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