Add more useful variables for rsync to fetch binary sets:
RSYNC_HOST specify rsync host (default: rsync.NetBSD.org) RSYNC_PATH_PREFIX specify extra prefix path of NetBSD module names for rsync mirrors ex. "/pub", "/netbsd" etc. (default: empty) DAILY_DIR specify directory name on using NetBSD-daily snapshot for -current ex. "200712060002Z" etc. (no default; mandatory for -current) RELEASE_SUFFIX specify suffix of directory names used for pre-releases ex. "_BETA2", "_RC5" etc. (default: empty) RSYNC_PATH specify path used to rsync hosts (default: set from the above variables) Examples: make RELEASE=3.1 TARGET_CD_IMAGE=mac68kcd fetch -> fetch 3.1 mac68k sets from rsync.NetBSD.org:/NetBSD/NetBSD-3.1/ make RELEASE=4.0 TARGET_CD_IMAGE=mac68kcd RELEASE_SUFFIX=_RC5 fetch -> fetch 4.0_RC5 mac68k sets from rsync.NetBSD.org:/NetBSD/NetBSD-4.0_RC5/ make RELEASE=current TARGET_CD_IMAGE=mac68kcd DAILY_DIR=200712060002Z fetch -> fetch -current mac68k sets from rsync.NetBSD.org:/NetBSD-daily/HEAD/200712060002Z/ make RELEASE=4.0 TARGET_CD_IMAGE=mac68kcd RELEASE_SUFFIX=_RC5 \ RSYNC_HOST=rsync3.jp.NetBSD.org RSYNC_PATH_PREFIX=/pub fetch -> fetch 4.0_RC5 mac68k sets from rsync3.jp.NetBSD.org:/pub/NetBSD/NetBSD-4.0_RC5/ make RELEASE=3.1 TARGET_CD_IMAGE=mac68kcd \ RSYNC_PATH=/NetBSD-daily/netbsd-3/200712060002Z fetch -> fetch mac68k sets of netbsd-3 branch from rsync.NetBSD.org:/pub/NetBSD-daily/netbsd-3/200712060002Z
This commit is contained in:
parent
37132d5d2f
commit
dda5f131c9
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.35 2007/12/07 18:35:21 tsutsui Exp $
|
||||
# $NetBSD: Makefile,v 1.36 2007/12/07 21:08:58 tsutsui Exp $
|
||||
#
|
||||
# Consult "*.conf" for the configuration variables; this Makefile is typically
|
||||
# not edited for basic configuration changes.
|
||||
@ -83,7 +83,32 @@ MACPPC_MKBOOTHFSDIR!= cd ${.CURDIR}/macppc_mkboothfs && ${PRINTOBJDIR}
|
||||
SGIMIPS_SGIVOL?= ${TOOLDIR}/bin/nbsgivol
|
||||
.endif
|
||||
|
||||
RSYNC_SITE?= rsync://rsync.NetBSD.org/NetBSD/${RELEASENAME}
|
||||
##### rsync settings #####
|
||||
|
||||
# rsync host; check mirrors on http://www.NetBSD.org/mirrors/#rsync
|
||||
# (note not all rsync mirrors provide NetBSD-daily)
|
||||
RSYNC_HOST?= rsync.NetBSD.org
|
||||
|
||||
# extra path for rsync mirrors ("/pub", "/netbsd" etc.)
|
||||
RSYNC_PATH_PREFIX?=
|
||||
|
||||
.if ${RELEASE} == "current"
|
||||
# daily date dir name
|
||||
BRANCH?= HEAD
|
||||
#DAILY_DIR?= yyyymmddhhmmZ
|
||||
RSYNC_PATH?= ${RSYNC_PATH_PREFIX}/NetBSD-daily/${BRANCH}/${DAILY_DIR}
|
||||
.else
|
||||
# extra suffix on pre-release ("_BETA2", "_RC5" etc.)
|
||||
RELEASE_SUFFIX?=
|
||||
RSYNC_PATH?= ${RSYNC_PATH_PREFIX}/NetBSD/${RELEASENAME}${RELEASE_SUFFIX}
|
||||
|
||||
# alternative for NetBSD-daily sets of stable branches
|
||||
#DAILY_DIR?= yyyymmddhhmmZ
|
||||
#BRANCH?= netbsd-4
|
||||
#RSYNC_PATH?= ${RSYNC_PATH_PREFIX}/NetBSD-daily/${BRANCH}/${DAILY_DIR}
|
||||
.endif
|
||||
|
||||
RSYNC_SITE?= rsync://${RSYNC_HOST}${RSYNC_PATH}
|
||||
RSYNC_ARGS?= -va --delete
|
||||
RSYNC_EXCLUDE+= --exclude=/* --exclude=Split --exclude=cdrom
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user