I'm excited to see that BC is now available for Linux! Many thanks to John (aka Ender) for the Gentoo eBuild!
I wanted to use BC3 as an external diff tool for SVN. I tried BC's Subversion integration instructions but they're clearly aimed at Windows and porting the recommended script didn't work as well as I'd like for what I use BC for.
I spent a few minutes fiddling and found a hack to do what I want BC to do in Linux: when I type 'svn diff' BC spawns with each comparison in its own tab.
To do this, I wrote the following script and put it in /usr/bin/bcompare_svn:
The invocation of bcompare is obvious but I had to add "exit 0" so that svn would open more than one file at a time.
To make svn invoke my script, I added the following line in the [helpers] section in ~/.subversion/config
Just thought I post it up in case anyone else might find it useful!
I wanted to use BC3 as an external diff tool for SVN. I tried BC's Subversion integration instructions but they're clearly aimed at Windows and porting the recommended script didn't work as well as I'd like for what I use BC for.
I spent a few minutes fiddling and found a hack to do what I want BC to do in Linux: when I type 'svn diff' BC spawns with each comparison in its own tab.
To do this, I wrote the following script and put it in /usr/bin/bcompare_svn:
Code:
#!/bin/bash /usr/bin/bcompare $6 $7 & exit 0
To make svn invoke my script, I added the following line in the [helpers] section in ~/.subversion/config
Code:
diff-cmd=/usr/bin/bcompare_svn
Comment