Subject: Re: how to use 'cd' in a do-* target
To: Mark E. Perkins <perkinsm@bway.net>
From: Dieter Baron <dillo@danbala.tuwien.ac.at>
List: tech-pkg
Date: 07/24/2005 14:07:18
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
: [cd fails]
Sorry, no idea what's wrong there.
yours,
dillo