/[soft]/drakwizard/trunk/Zwiffer.pl
ViewVC logotype

Contents of /drakwizard/trunk/Zwiffer.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 486 - (show annotations) (download)
Tue Feb 8 00:14:32 2011 UTC (13 years, 2 months ago) by dmorgan
File MIME type: text/plain
File size: 946 byte(s)
Import cleaned drakwizard
1 #!/usr/bin/perl
2
3 use strict;
4
5 open(wizi, "< $ARGV[0]");
6 open(wizo, "> $ARGV[1]");
7 my @tab;
8 my $verbose = 0;
9
10 while (<wizi>)
11 {
12 if (/(\s*defaultImage=\".*)\..*\"/) {
13 print wizo "$1\"\n";
14 next;
15 }
16 if (/\s*guiType\s*\=.*/ || /\s*font.*\=.*/ || /\s*inputType\s*\=.*/ || /\s*dbPositions\s*\=.*/ ||
17 /\s*ratio\s*\=.*/ || /\s*proportional\s*\=.*/ || /\s*length\s*\=.*/ || /\s*alignement\s*\=.*/ ||
18 /\s*hasDb\s*\=.*/ || /\s*key\s*\=.*/ || /\s*db.*\=.*/ || /\s*reference.*\=.*/ || /\s*height\s*\=.*/ ||
19 /\s*width\s*\=.*/ || /\s*persistent\s*\=.*/) {
20 print "# $_" if $verbose;
21 next;
22 }
23 if (m/^\s*<Info/s.../^\s*<\/Info>/m ) {
24 if (!/\s*name\s*\=\".*\"\s*/) {
25 push @tab, $_;
26 print ">> $_" if $verbose;
27 }
28 next;
29 }
30 else {
31 if (@tab > 3) {
32 foreach (@tab) {
33 print "?? $_" if $verbose;
34 print wizo $_;
35 }
36 }
37 }
38 @tab = ();
39 print wizo $_;
40 }
41 close(wizi);
42 close(wizo);
43 print "$ARGV[0] -> $ARGV[1]\n";

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.30