5
oldrc2newrc - Swatch configuration file conversion tool
9
B<swatch_oldrcrc2newrc> < I<old_config_file> > I<new_config_file>
13
This program will convert an swatch version 2 configuration file
14
into a new style configuration file. I highly reccomend that you
15
examine the new file before using it.
21
# oldrc2newrc - a swatch configuration file converter
22
# Copyright (C) 1999 E. Todd Atkins
24
# This program is free software; you can redistribute it and/or modify
25
# it under the terms of the GNU General Public License as published by
26
# the Free Software Foundation; either version 2 of the License, or
29
# This program is distributed in the hope that it will be useful,
30
# but WITHOUT ANY WARRANTY; without even the implied warranty of
31
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32
# GNU General Public License for more details.
34
# You should have received a copy of the GNU General Public License
35
# along with this program; if not, write to the Free Software
36
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
47
if (/^\s*$/ or /^\s*\#/) {
50
print "ignore = $_[0]\n";
52
print "watchfor = $_[0]\n";
53
print "\tthrottle = $_[2]\n" if (defined $_[2] and $_[2] =~ /^[0-9]/);
54
foreach my $action (split(/,/, $_[1])) {