🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: uk.comp.os.linux
Article #887

Re: How to make tarballs?

#887
From: Richard Robinson
Date: Fri, 24 Mar 2000 00:00
32 lines
2135 bytes
In article <m3og84e8ra.fsf@thyme.td.micromuse.co.uk>, Tim Haynes wrote:
>philh@vision25.demon.co.uk (phil hunt) writes:
>
>> The way i do this is that first I create a directory parrot-0.2.5/ which
>> contains evereything I want to include from the parrot/ directory to go
>> into the tarball. This is potentially error-prone, especially as it is a
>> routine (& therefore boring) administrative task. Then I execute the tar
>> command above.
>
>It's a question of directory paths. If you want the contents of the tar
>archive to be 
>	blah-0.2
>	blah-0.2/Minutes.doc
>	blah-0.2/cd_b4.tar.gz
>	blah-0.2/somefile.txt
>
>then you must be in a directory containing blah-0.2/ underneath it; the
>alternatives are either full directory paths (EVIL! [1]) or no directories
>at all (  cd blah-0.2 ; tar cvzf ../blah-0.2.tar.gz * )  according to taste.
>
>> Is there an easier way?
>
>   -1) that IS easy!  ;8^]

:-)
Another possibility, create a directory that will be like the one you want
the unpacking to produce - put into it a symbolic or hard link to each of
the files you want to be found in it.

-- 
Richard Robinson
"The whole plan hinged upon the natural curiosity of potatoes" - S. Lem
Technical Details
Message-ID: <slrn8dnb6c.vut.richard@beulah.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <slrn8dmspm.9sp.philh@vision25.demon.co.uk> <m3og84e8ra.fsf@thyme.td.micromuse.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c696,5ebef2ff092e0af0
X-Google-Attributes: gid10c696,public
X-Google-Thread: 10d8ad,5ebef2ff092e0af0
X-Google-Attributes: gid10d8ad,public
X-Google-Thread: 1025b4,5ebef2ff092e0af0
X-Google-Attributes: gid1025b4,public
From: richard@beulah.demon.co.uk (Richard Robinson)
Subject: Re: How to make tarballs?
Date: 2000/03/24
Message-ID: <slrn8dnb6c.vut.richard@beulah.demon.co.uk>
X-Deja-AN: 601869006
X-NNTP-Posting-Host: beulah.demon.co.uk:158.152.10.96
References: <slrn8dmspm.9sp.philh@vision25.demon.co.uk> <m3og84e8ra.fsf@thyme.td.micromuse.co.uk>
X-Trace: news.demon.co.uk 953924488 nnrp-06:26525 NO-IDENT beulah.demon.co.uk:158.152.10.96
Organization: One-Foot-in-the-Gutter Enterprises
User-Agent: slrn/0.9.5.3 (UNIX)
Newsgroups: uk.comp.os.linux,comp.os.linux.development.apps,gnu.misc.discuss
X-Complaints-To: abuse@demon.net