[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tar Feature Request
From: |
Paul Jarc |
Subject: |
Re: Tar Feature Request |
Date: |
Fri, 04 Jan 2002 15:18:50 -0500 |
User-agent: |
Gnus/5.090005 (Oort Gnus v0.05) Emacs/20.7 (i386-redhat-linux-gnu) |
"Andreas S. Oesterhelt" <address@hidden> wrote:
> In a Makefile for a project of mine I currently use
> a temporary symlink as a workaround.
>
> tarball-src: clobber
> $(LN) -s current ../ijb-$(VERSION)-$(CODE_STATUS)
> $(TAR) -C.. -cvhzf ijb-$(VERSION)-$(CODE_STATUS)-src.tar.gz
> ijb-$(VERSION)-$(CODE_STATUS)
> $(RM) ../ijb-$(VERSION)-$(CODE_STATUS)
>
> where "current" is the source dir's name. Apart from being 3 lines
> instead of one, this also forces -h for the source tree, which
> might not be desirable in all cases.
Instead of -h, you can use "tar ... symlink/.".
paul