Added missing file/removed unneeded file
authorVictor Kirhenshtein <victor@netxms.org>
Mon, 2 Jul 2007 07:43:34 +0000 (07:43 +0000)
committerVictor Kirhenshtein <victor@netxms.org>
Mon, 2 Jul 2007 07:43:34 +0000 (07:43 +0000)
.gitattributes
tools/patch_libtool.pl [deleted file]
tools/update_xrc.pl [new file with mode: 0644]

index 120615b..21e465b 100644 (file)
@@ -1577,9 +1577,9 @@ tools/create_apkg.sh -text
 tools/create_ssa_list.sh -text
 tools/mc.pl -text
 tools/nwmkimp.pl -text
-tools/patch_libtool.pl -text
 tools/sharIt -text
 tools/stub.sh -text
+tools/update_xrc.pl -text
 www/.cvsignore -text
 www/cgi-bin/Net/Cmd.pm -text
 www/cgi-bin/Net/Config.pm -text
diff --git a/tools/patch_libtool.pl b/tools/patch_libtool.pl
deleted file mode 100644 (file)
index ca41f63..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/perl
-
-while(<>)
-{
-   chomp;
-   $line = $_;
-   if ($line =~ /^postdeps\=.*/)
-   {
-      $line = "postdeps=\"\"";
-   }
-   print "$line\n";
-}
-
-exit 0;
diff --git a/tools/update_xrc.pl b/tools/update_xrc.pl
new file mode 100644 (file)
index 0000000..6289bce
--- /dev/null
@@ -0,0 +1,46 @@
+#!/usr/bin/perl
+
+$mode = 0;
+$level = 0;
+
+while(<>)
+{
+   chomp;
+   $line = $_;
+   if ($mode == 0)
+   {
+      if ($line =~ /^.*\<object class="wxFrame" name="delete_.*/)
+      {
+         $mode = 1;
+         $level++;
+         $line = "";
+      }
+   }
+   elsif ($mode == 1)
+   {
+      if ($line =~ /^.*\<object.*\/\>.*/)
+      {
+      }
+      elsif ($line =~ /^.*\<object.*/)
+      {
+         $level++;
+      }
+      elsif ($line =~ /^.*\<\/object.*/)
+      {
+         $level--;
+         if ($level == 0)
+         {
+            $line = "";
+            $mode = 0;
+         }
+      }
+      elsif ($level == 1)
+      {
+         $line = "";
+      }
+   }
+   if ($line ne "")
+   {
+      print "$line\n";
+   }
+}