INSTALL

Sat, 28 Apr 2007 23:52:36 -0400

author
brett
date
Sat, 28 Apr 2007 23:52:36 -0400
branch
trunk
changeset 23
039dd321a7d0
parent 18
1600807a32bd
child 42
4a4cab75d5e6
permissions
-rw-r--r--

[svn] If an archive contains other archives, and the user didn't specify that
they wanted recursion, prompt them to find out what they want to do.

This required some changes in the way prompting for one-item archives works
too, because if an archive inside another archive is itself a one-item
archive, things get really weird. I'm still not really sure what the right
policy is for that.

I'm not wild about this code. It feels like programming a bunch of special
cases. I need to figure out a better way to abstract it. I'm thinking
some kind of Policy class....

x Installation Documentation
============================

Requirements
------------

To run x, you'll need Python_ 2.4 or greater.  You can also use Python 2.3
if you separately install the `subprocess module`_.

.. _Python: http://www.python.org/
.. _`subprocess module`: http://www.lysator.liu.se/~astrand/popen5/

x calls out to different external tools to support different archive types.
Most of these are already installed on most GNU/Linux systems, so you
probably won't have to worry about these too much, but just for
completeness, the exact requirements for each format are as follows:

tar archives
  tar

zip archives
  unzip, zipinfo

cpio archives
  cpio

rpm archives
  rpm2cpio, cpio

deb archives
  ar, tar, zcat

Files compressed with gzip or compress
  zcat

Files compressed with bzip2
  bzcat

Installation
------------

x is just a simple script, making it easy to stash wherever you need it.
Just copy ``scripts/x`` to a location that's convenient for you.  If you'd
like to install the program system-wide, you can run the following as root
or equivalent::

   python setup.py install

mercurial