Article View: uk.comp.os.linux
Article #899Re: How to make tarballs?
From: Dave Pearson
Date: Fri, 24 Mar 2000 00:00
Date: Fri, 24 Mar 2000 00:00
76 lines
3320 bytes
3320 bytes
On Fri, 24 Mar 2000 13:52:54 +0000, phil hunt <philh@vision25.demon.co.uk> wrote: > 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? I do what you say above but I automate it. For example, here's a shell script I use to built the source tarball of my Linux oriented Norton Guide reader: ,----[ mktarfile ] | #!/bin/sh | | EGVER="`cat eg.h | grep EG_VERSION | sed -n 's/.*\"\([0-9.]*\)\".*/\1/gp'`" | EGDIR="eg-$EGVER" | | ./mkmanfile $EGDIR | | rm -f eg-*.spec | cat eg.spec | sed -e "s/\\\$VERSION\\$/$EGVER/g" > eg-$EGVER.spec | | mkdir $EGDIR | mkdir $EGDIR/default-guide | | cp *.[ch] $EGDIR | cp Makefile $EGDIR | cp mktarfile $EGDIR | cp mklsmfile $EGDIR | cp mkmanfile $EGDIR | cp README $EGDIR | cp COPYING $EGDIR | cp Changes $EGDIR | cp TODO $EGDIR | cp BUGS $EGDIR | cp eg.spec $EGDIR | cp eg-$EGVER.spec $EGDIR | cp eg $EGDIR | cp eg.lsm $EGDIR | cp eg.1 $EGDIR | cp eg.man.1 $EGDIR | cp default-guide/* $EGDIR/default-guide | | tar czvf $EGDIR.tar.gz $EGDIR | | rm -Rf $EGDIR/* | rmdir $EGDIR | | mkdir -p release | mv $EGDIR.tar.gz release/ | | ./mklsmfile $EGDIR `---- I have a "release" directory under the work directory and the tarball gets dropped into there. mkmanfile and mklsmfile, as the names suggest, build the man and lsm files. The above is fired with "make tarfile": ,----[ Excerpt from Makefile ] | tarfile: veryclean | ./mktarfile `---- When anything becomes a "routine (& therefore boring) administrative task" it's time to automate it. -- Take a look in Hagbard's World: | w3ng - The WWW Norton Guide reader. http://www.hagbard.demon.co.uk/ | eg - Norton Guide reader for Linux. http://www.acemake.com/hagbard/ | weg - Norton Guide reader for Windows. Free software, including........| dgscan - DGROUP scanner for Clipper.
Technical Details
Message-ID:
<slrn8dn4ph.rfd.davep.news@hagbard.demon.co.uk>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: davep.news@davep.org (Dave Pearson) Subject: Re: How to make tarballs? Date: 2000/03/24 Message-ID: <slrn8dn4ph.rfd.davep.news@hagbard.demon.co.uk> X-Deja-AN: 601806436 X-NNTP-Posting-Host: hagbard.demon.co.uk:158.152.34.118 References: <slrn8dmspm.9sp.philh@vision25.demon.co.uk> X-DDate: Pungenday, Day 10 of the season of Discord, Anno Mung 3166 X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 953914262 nnrp-06:22227 NO-IDENT hagbard.demon.co.uk:158.152.34.118 Organization: (davep 'org) X-URL: http://www.hagbard.demon.co.uk/ User-Agent: slrn/0.9.6.2 (Linux) Reply-To: davep@davep.org NNTP-Posting-Date: 24 Mar 2000 16:09:21 GMT Newsgroups: uk.comp.os.linux,comp.os.linux.development.apps,gnu.misc.discuss