Subject: Re: how to use 'cd' in a do-* target
To: Dieter Baron <dillo@danbala.tuwien.ac.at>
From: Mark E. Perkins <perkinsm@bway.net>
List: tech-pkg
Date: 07/24/2005 10:04:12
On 7/24/05 08:07, Dieter Baron wrote:
> In article <42E37BB1.4040800@bway.net> Mark wrote:
> : I'm trying to use pkgsrc to maintain a local project that uses four
> : small files from diverse sources (i.e., there is no tar file, hence no
> : single repository, for the files). I thought I would simply be able to
> : use something like:
> 
> : do-fetch:
> :         ${MKDIR} ${FILESDIR}
> :         cd ${FILESDIR}
> :         ${FETCH_CMD} path/to/file1
> :         ${FETCH_CMD} path/to/file2
> :         ${FETCH_CMD} path/to/file3
> :         ${FETCH_CMD} path/to/file4
> 
>   You can acomplish that with the standard fetch target:
> 
> DISTFILES=	file1 file2 file3 file4
> SITES_file1=	path/to/file1
> SITES_file2=	path/to/file2
> SITES_file3=	path/to/file3
> SITES_file4=	path/to/file4
> 

That makes things a bit cleaner. Thanks for the pointer.

Mark