Article View: uk.comp.os.linux
Article #890Re: How to make tarballs?
From: Donovan Rebbechi
Date: Fri, 24 Mar 2000 00:00
Date: Fri, 24 Mar 2000 00:00
46 lines
2339 bytes
2339 bytes
On Fri, 24 Mar 2000 13:52:54 +0000, phil hunt 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? Your best bet is to automate using a shell script and/or make. I always have a "tgz" target in my Makefile so that "make tgz" automatically creates a tarball. This way, when I run make, I get tarballs for free when I update. It goes something like this: VERSION = 0.2.5 tgz: mv parrot parrot-$(VERSION) ; \ tar cvzf parrot-$(VERSION).tgz parrot-$(VERSION) If you're familiar with make, you're aware that you can override VERSION by passing it to the command line : make VERSION = 0.2.6 tgz Of course, you could just do the same thing in a shell script. Read the info docs on make for more information about it. If you can't stand the GNU info program, either download TkInfo or use KDEhelp to browse the docs. Cheers, -- Donovan
Technical Details
Message-ID:
<slrn8dngd7.5rn.elflord@panix2.panix.com>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: 1025b4,5ebef2ff092e0af0 X-Google-Attributes: gid1025b4,public X-Google-Thread: 10d8ad,5ebef2ff092e0af0 X-Google-Attributes: gid10d8ad,public From: elflord@panix.com (Donovan Rebbechi) Subject: Re: How to make tarballs? Date: 2000/03/24 Message-ID: <slrn8dngd7.5rn.elflord@panix2.panix.com> X-Deja-AN: 601879006 References: <slrn8dmspm.9sp.philh@vision25.demon.co.uk> X-Complaints-To: abuse@panix.com X-Trace: news.panix.com 953926055 9583 166.84.0.227 (24 Mar 2000 19:27:35 GMT) Organization: PANIX Public Access Internet and UNIX, NYC User-Agent: slrn/0.9.6.2 (NetBSD) NNTP-Posting-Date: 24 Mar 2000 19:27:35 GMT Newsgroups: uk.comp.os.linux,comp.os.linux.development.apps,gnu.misc.discuss