From: Thierry Parmentelat Date: Fri, 13 Jun 2008 07:24:10 +0000 (+0000) Subject: nightly passes build-SVNPATH to make, to avoid having to tune the tags file when... X-Git-Tag: 4.2-rc21~43 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ac4c31f47c9d93c9e0f646e39572208d65870c83;p=build.git nightly passes build-SVNPATH to make, to avoid having to tune the tags file when building an rc --- diff --git a/Makefile b/Makefile index 23b07e31..4ddedc80 100644 --- a/Makefile +++ b/Makefile @@ -131,6 +131,19 @@ include $(PLDISTROCONTENTS) PLDISTROTAGS := $(PLDISTRO)-tags.mk include $(PLDISTROTAGS) +# this used to be set in the -tags.mk files, but that turned out to require +# error-prone duplicate changes +# so now the nightly build script sets this to what it is currently using +# we set a default in case we run the build manually: +# if the local directory was svn checked out, then use the corresponding URL +default-build-SVNPATH := $(shell svn info 2> /dev/null | grep URL: | awk '{print $2;}') +# otherwise, use this hard-coded default +ifeq "$(default-build-SVNPATH)" "" +default-build-SVNPATH := http://svn.planet-lab.org/svn/build/trunk +endif +# use default if necessary +build-SVNPATH ?= $(default-build-SVNPATH) + ########## stage1 and stage1iter # extract specs and compute .mk files by running # make stage1=true diff --git a/onelab-tags.mk b/onelab-tags.mk index 9e159610..5841495c 100644 --- a/onelab-tags.mk +++ b/onelab-tags.mk @@ -1,6 +1,6 @@ # $Id$ -build-SVNPATH := http://svn.planet-lab.org/svn/build/trunk +# build-SVNPATH is now set by vbuild-nightly.sh to avoid duplication linux-2.6-SVNPATH := http://svn.planet-lab.org/svn/linux-2.6/trunk madwifi-SVNPATH := http://svn.planet-lab.org/svn/madwifi/trunk wireless-tools-SVNPATH := http://svn.planet-lab.org/svn/wireless-tools/trunk diff --git a/planetlab-tags.mk b/planetlab-tags.mk index 558bfb35..1e19da84 100644 --- a/planetlab-tags.mk +++ b/planetlab-tags.mk @@ -1,6 +1,6 @@ # $Id$ -build-SVNPATH := http://svn.planet-lab.org/svn/build/trunk +# build-SVNPATH is now set by vbuild-nightly.sh to avoid duplication linux-2.6-SVNPATH := http://svn.planet-lab.org/svn/linux-2.6/trunk madwifi-SVNPATH := http://svn.planet-lab.org/svn/madwifi/trunk wireless-tools-SVNPATH := http://svn.planet-lab.org/svn/wireless-tools/trunk diff --git a/vbuild-nightly.sh b/vbuild-nightly.sh index ef3582e5..32c99d79 100755 --- a/vbuild-nightly.sh +++ b/vbuild-nightly.sh @@ -146,6 +146,7 @@ function build () { MAKEVARS=("PLDISTROTAGS=${PLDISTROTAGS}" "${MAKEVARS[@]}") MAKEVARS=("NIGHTLY_BASE=${BASE}" "${MAKEVARS[@]}") MAKEVARS=("NIGHTLY_PERSONALITY=${PERSONALITY}" "${MAKEVARS[@]}") + MAKEVARS=("build-SVNPATH=${SVNPATH}" "${MAKEVARS[@]}") # stage1 make -C /build $DRY_RUN "${MAKEVARS[@]}" stage1=true