[freeside-commits] freeside/bin confdiff,NONE,1.1
Ivan,,,
ivan at wavetail.420.am
Sat May 2 17:40:52 PDT 2009
Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail.420.am:/tmp/cvs-serv28733
Added Files:
confdiff
Log Message:
confdiff
--- NEW FILE: confdiff ---
#!/usr/bin/perl
use FS::UID qw(adminsuidsetup);
use FS::Conf;
adminsuidsetup('ivan');
my $conf = new FS::Conf;
my $file2 = pop @ARGV;
my $file1 = pop @ARGV;
open(FILE1, ">/tmp/$file1") or die "can't open /tmp/$file1: $!";
print FILE1 $conf->config($file1);
print FILE1 "\n";
close FILE1 or die $!;
open(FILE2, ">/tmp/$file2") or die "can't open /tmp/$file2: $!";
print FILE2 $conf->config($file2);
print FILE2 "\n";
close FILE2 or die $!;
my @opt = @ARGV;
system('diff', @opt, "/tmp/$file1", "/tmp/$file2");
#unlink("/tmp/$file1', "/tmp/$file2");
More information about the freeside-commits
mailing list