root/libswish3/trunk/perl/convert_config.pl

Revision 1913, 360 bytes (checked in by karpet, 1 year ago)

for all the world to see

Line 
1 #!/usr/bin/perl -w
2 #
3 # convert swish 2 config to swish 3 (xml) config
4 #
5
6 use strict;
7 use SWISH::Prog::Config;
8 use File::Slurp;
9
10 my $usage = "$0 config_file [...config_fileN]\n";
11
12 die $usage unless @ARGV;
13
14 my $config = SWISH::Prog::Config->new;
15 for my $f (@ARGV)
16 {
17     my $xml = $config->ver2_to_xml($f);
18
19     my $new = "$f.xml";
20
21     write_file($new, $xml);
22 }
Note: See TracBrowser for help on using the browser.