SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Sponsored Links

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

# $Id: README,v 1.2.2.1 2002/04/25 08:50:03 daveewart Exp $

UNPACK - Info

Unpack automates the process of extracting source tarballs to a fixed location, by default $HOME/src or /tmp, after first checking that the tarball will create its own subdirectory. A directory is created based on the tarball filename if not. Unpack is written in Perl and was developed for Linux, but should run unmodified on most Unix-based systems, although a recent version of GNU tar is recommended..

UNPACK - Default extraction directory

The default "extraction" directory is the first directory succesfully found from:

  1. "DIR=" entry from $HOME/.unpackrc, i.e. contents of $HOME/.unpackrc should be something like:

DIR=/home/username/srcdir

2. $HOME/src;

3. /tmp

UNPACK - Examples

EXAMPLE 1

For a tarball with a 'good' top-level directory:

(e.g.

> tar -ztf project-1.2.tar.gz
project-1.2/main.c
project-1.2/const.h
project-1.2/README
...)

This will be unpacked as follows:

> unpack project-1.2.tar.gz

C)2001-2002 Dave Ewart, davee@sungate.co.uk Unpack version 1.0 (15.04.2002)

Identifying compression type ... gzipped tarball: OK Checking that archive extracts to its own directory ... Yes. Unpacking /home/username/project-1.2.tar.gz to /home/username/src ... OK

And the resulting files are in /home/username/src/project-1.2/...

EXAMPLE 2

For a tarball with no top-level directory:

(e.g.

> tar -ztf badprog-1.3.tar.gz
main.c
const.h
README
INSTALL
...)

This will be unpacked as follows:

> unpack badprog-1.3.tar.gz

(C)2001-2002 Dave Ewart, davee@sungate.co.uk Unpack version 1.0 (15.04.2002)

Identifying compression type ... gzipped tarball: OK Checking that archive extracts to its own directory ... No. Creating path /home/username/src/badprog-1.3 ... OK. Unpacking /home/username/badprog-1.3.tar.gz to /home/username/src/badprog-1.3 ... OK

The extracted files are in /home/username/src/badprog-1.3 ...


Sponsored Links

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.