Article View: uk.comp.os.linux
Article #888Re: How to make tarballs?
From: Stephen
Date: Fri, 24 Mar 2000 00:00
Date: Fri, 24 Mar 2000 00:00
34 lines
2167 bytes
2167 bytes
On Fri, 24 Mar 2000 13:52:54 +0000, phil hunt <philh@vision25.demon.co.uk> wrote: > How do people make tarballs? > > This is not as stupid a question as it sounds. I know the 'tar' > command, and I know that for example: > > tar czvf parrot-0.2.5.tgz parrot-0.2.5/ > > will create a file 'parrot-0.2.5.tgz' which when untarred will put its > contents in a subdirectory called 'parrot-0.2.5'. > > 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. > > Is there an easier way? You could create a list of the files you want included and then use tar's -T option to only select those files: % tar cvzTf list parrot-0.2.5.tgz If you already have an untarred archive then you can create the file of names with find: % find parrot-0.2.5 -print > list [This assumes that your working directory is called `parrot-0.2.5'. If not, rename it (temporarily) with `mv']. -- stephen
Technical Details
Message-ID:
<slrn8dng1i.3gt.stephen@dewdrop.none.invalid>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<slrn8dmspm.9sp.philh@vision25.demon.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: stephen@dewdrop.none.invalid (Stephen) Subject: Re: How to make tarballs? Date: 2000/03/24 Message-ID: <slrn8dng1i.3gt.stephen@dewdrop.none.invalid> X-Deja-AN: 601876970 Content-Transfer-Encoding: 7bit References: <slrn8dmspm.9sp.philh@vision25.demon.co.uk> Content-Type: text/plain; charset=iso-9960-1 X-Complaints-To: abuse@theplanet.net X-Trace: newsg2.svr.pol.co.uk 953925751 22379 62.136.29.129 (24 Mar 2000 19:22:31 GMT) Organization: Customer of Planet Online Mime-Version: 1.0 User-Agent: slrn/0.9.6.2 (Linux) Reply-To: stephen@ciaccona.ezesurf.co.uk NNTP-Posting-Date: 24 Mar 2000 19:22:31 GMT Newsgroups: uk.comp.os.linux,comp.os.linux.development.apps,gnu.misc.discuss