rev 13345 - in branches/kde4.2/packages/pkg-kde-tools/trunk: debian symbolshelper

Modestas Vainius modax-guest at alioth.debian.org
Wed Jan 14 13:31:14 UTC 2009


Author: modax-guest
Date: 2009-01-14 13:31:14 +0000 (Wed, 14 Jan 2009)
New Revision: 13345

Modified:
   branches/kde4.2/packages/pkg-kde-tools/trunk/debian/changelog
   branches/kde4.2/packages/pkg-kde-tools/trunk/symbolshelper/pkgkde-symbolshelper
Log:
Add support for resorting symbol files (useful after manual editing).

Modified: branches/kde4.2/packages/pkg-kde-tools/trunk/debian/changelog
===================================================================
--- branches/kde4.2/packages/pkg-kde-tools/trunk/debian/changelog	2009-01-14 12:18:50 UTC (rev 13344)
+++ branches/kde4.2/packages/pkg-kde-tools/trunk/debian/changelog	2009-01-14 13:31:14 UTC (rev 13345)
@@ -1,3 +1,9 @@
+pkg-kde-tools (0.3.2~pre1) UNRELEASED; urgency=low
+
+  * Add support for resorting symbol files (useful after manual editing).
+
+ -- Modestas Vainius <modestas at vainius.eu>  Wed, 14 Jan 2009 15:29:21 +0200
+
 pkg-kde-tools (0.3.1) experimental; urgency=low
 
   * pkgkde-symbolshelper/patch: improve processing of patches which patch

Modified: branches/kde4.2/packages/pkg-kde-tools/trunk/symbolshelper/pkgkde-symbolshelper
===================================================================
--- branches/kde4.2/packages/pkg-kde-tools/trunk/symbolshelper/pkgkde-symbolshelper	2009-01-14 12:18:50 UTC (rev 13344)
+++ branches/kde4.2/packages/pkg-kde-tools/trunk/symbolshelper/pkgkde-symbolshelper	2009-01-14 13:31:14 UTC (rev 13345)
@@ -287,6 +287,24 @@
     return 1;
 }
 
+sub subcommand_resort {
+    my %opts = (
+        get_common_options("oi"),
+    );
+    if (GetOptions(%opts)) {
+        check_mandatory_options("i");
+
+        if (-f $opt_in) {
+            my $symfile = new Debian::PkgKde::SymHelper::SymbFile($opt_in);
+            return out_symfile($symfile);
+        } else {
+            error("input symbol file ($opt_in) not found");
+            return 1;
+        }
+    }
+    return 1;
+}
+
 # Boilerplate for the common subcommand handler
 sub subcommand_boilerplate {
     my %opts = (
@@ -304,6 +322,7 @@
     "symbolfile"        => [ 2, \&subcommand_symbolfile, "generate symbol file from the template" ],
     "patch"             => [ 3, \&subcommand_patch, "apply dpkg-gensymbols patch to the symbol file template" ],
     "postgensymbols"    => [ 4, \&subcommand_postgensymbols, "post-process symbols file after dpkg-gensymbols" ],
+    "resort"            => [ 5, \&subcommand_resort, "resort symbol file" ],
 );
 
 # This one is needed by most subcommands




More information about the pkg-kde-commits mailing list