From b22b6c9803599862ed520b4a2845c4528e843609 Mon Sep 17 00:00:00 2001 From: fejj Date: Mon, 30 Nov 2009 21:55:25 +0000 Subject: [PATCH] 2009-11-30 Jeffrey Stedfast * respack.cs: Changed Compress/Decompress to be Pack/Unpack to fit the nomenclature a bit better (which also make it clearer what it is doing) and fixed the docs to explain that "unpacking" means to extract a resource just in case it wasn't already clear. git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/moon@147129 e3ebcda4-bce8-0310-ba0a-eca2169e7518 --- tools/respack/ChangeLog | 7 +++++++ tools/respack/respack.cs | 16 ++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/tools/respack/ChangeLog b/tools/respack/ChangeLog index 6b3c274c8..c56ad19fe 100644 --- a/tools/respack/ChangeLog +++ b/tools/respack/ChangeLog @@ -1,3 +1,10 @@ +2009-11-30 Jeffrey Stedfast + + * respack.cs: Changed Compress/Decompress to be Pack/Unpack to fit + the nomenclature a bit better (which also make it clearer what it + is doing) and fixed the docs to explain that "unpacking" means to + extract a resource just in case it wasn't already clear. + 2009-04-13 Rolf Bjarne Kvinge * respack.mdp: Add a project for each tool, and clean up some diff --git a/tools/respack/respack.cs b/tools/respack/respack.cs index 728dedea8..e399ddd34 100644 --- a/tools/respack/respack.cs +++ b/tools/respack/respack.cs @@ -30,13 +30,13 @@ class ResourcePacker { public static int Main (string [] args) { bool help = false; - bool decompress = false; + bool unpack = false; string pattern = @"^.+\.xaml?"; var p = new OptionSet () { { "h|?|help", v => help = v != null }, - { "d|decomress", "Decompress the supplied assembly.", v => decompress = v != null }, - { "p|pattern=", "Only decompress the resources that match supplied pattern. By default only .xaml files will be decompressed.", v => pattern = v }, + { "u|unpack", "Extract resources from the supplied assembly.", v => unpack = v != null }, + { "p|pattern=", "Only extract the resources that match supplied pattern. By default only .xaml files will be extracted.", v => pattern = v }, { "v|verbose", v=> verbose = v != null } }; @@ -51,16 +51,16 @@ class ResourcePacker { if (help) ShowHelp (p); - if (decompress) - return Decompress (files [0], pattern); + if (unpack) + return Unpack (files [0], pattern); if (files == null || files.Count == 0) ShowHelp (p); - return Compress (files); + return Pack (files); } - public static int Compress (List files) + public static int Pack (List files) { ResourceWriter output = null; try { @@ -99,7 +99,7 @@ class ResourcePacker { return 0; } - public static int Decompress (string assembly, string pattern) + public static int Unpack (string assembly, string pattern) { Assembly asm = null; try { -- 2.11.4.GIT