Add "fetchindex" target. It fetches the recent index file (INDEX _or_
INDEX-5). A note about the implementation: I had to add the call to chmod to make the index file readable to everyone. I'm a little bit surprised by this, since my umask is 022. Either fetch(1) doesn't respect the umask or it mirrors the permissions too (I haven't investigated this). Both possibilities aren't documented in the man-page. Approved by: kris (previous version without the chmod)
This commit is contained in:
parent
8915cb7e3a
commit
60cbbacd39
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=109965
1 changed files with 3 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -70,6 +70,9 @@ index:
|
|||
@rm -f ${.CURDIR}/${INDEXFILE}
|
||||
@cd ${.CURDIR} && make ${.CURDIR}/${INDEXFILE}
|
||||
|
||||
fetchindex:
|
||||
@cd ${.CURDIR} && fetch -am http://www.FreeBSD.org/ports/${INDEXFILE} && chmod a+r ${INDEXFILE}
|
||||
|
||||
INDEX_JOBS?= 2
|
||||
|
||||
${.CURDIR}/${INDEXFILE}:
|
||||
|
|
Loading…
Reference in a new issue