Skip to Content.
Sympa Menu

sm-discuss - Re[3]: [SM-Discuss] sorcery purists do not read!

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Mark Andrews <msasgl AT msa-enterprises.com>
  • To: Dufflebunk <dufflebunk AT dufflebunk.homeip.net>, SM-Discuss AT lists.ibiblio.org
  • Subject: Re[3]: [SM-Discuss] sorcery purists do not read!
  • Date: Tue, 10 Dec 2002 13:14:08 +0000

Hello All,

Monday, December 9, 2002, 3:32:27 PM, you wrote:

>>> Like my ua command which does an extension based (recursive)
>>> unarchive command - so things like
>>>
>>> ua -d /directory file1.tar.gz file2.patch.bz2
>>>
>>> produce a patched source directory.
>>> The plan is that the bzip2 spell manages it's entry in the
>>> ua command and so on..
D>> Hmm, interesting.

MA> The machines at home at the moment, but I'll bring a copy of
MA> this tomorrow.

And here it is 8-)

http://www.msa-enterprises.com/deepdesk/dd.tar.bz2

Contains ua and lu commands for zsh. Just put them in
/usr/share/zsh/site-functions (autoload if you wish) for an easy life.

the management of ua for the archive types can be done with libconfig
"section" type stuff. This is the (bash) library which I posted as a
suggested fix to http://bugs.sourcemage.org/show_bug.cgi?id=342

The section code in that library is very simplistic but will do the
job with minor mods, I plan on extending / improving the functionality
later..

Changing the ua script to bash should be easy and the lu command is
actually just a zsh function wrapped version of the lookup command in
libconfig. lookup had too many characters ;-)

lu is for doing things like:

lu -s : /proc/cpuinfo "model name"

--
Best regards,
Mark mailto:msasgl AT msa-enterprises.com





Archive powered by MHonArc 2.6.24.

Top of Page