release: update to use git instead of svn:
Makefile.* (cloudware): - Consistify setting the BUILDDATE for snapshots. release.conf.sample/release.sh: - Run 'git clone' in 'quiet' mode. Makefile.inc1: - Set BUILDDATE and export the variable. Sponsored by: Rubicon Communications, LLC (netgate.com)
This commit is contained in:
parent
c7aa572cac
commit
86e5b1377d
@ -17,7 +17,7 @@ AZURE${VAR}!= grep -E ^AZURE${VAR} ${AZURE_UPLOAD_CONF} | awk -F' ' '{print $$2}
|
||||
.endif
|
||||
|
||||
.if ${BRANCH} == "STABLE" || ${BRANCH} == "CURRENT" || ${BRANCH} == "PRERELEASE"
|
||||
SNAPSHOT_DATE!= date +-%Y-%m-%d
|
||||
SNAPSHOT_DATE!= date +-${BUILDDATE}
|
||||
.endif
|
||||
|
||||
AZURE_TARGET:= ${OSRELEASE}${SNAPSHOT_DATE}.vhd
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
.if ${BRANCH} == "CURRENT" || ${BRANCH} == "STABLE" || ${BRANCH} == "PRERELEASE"
|
||||
AMINAMESUFFIX!= date +-%Y-%m-%d
|
||||
AMINAMESUFFIX!= date +-${BUILDDATE}
|
||||
.endif
|
||||
.if defined(EC2PUBLIC) && !empty(EC2PUBLIC)
|
||||
PUBLISH= --public
|
||||
|
@ -24,8 +24,7 @@ GCE_FAMILY= ${TYPE:tl}-${REVISION:S,.,-,}
|
||||
.endif
|
||||
|
||||
.if ${BRANCH} == "STABLE" || ${BRANCH} == "CURRENT" || ${BRANCH} == "PRERELEASE"
|
||||
_SNAPSHOT_DATE!= date +%Y%m%d
|
||||
SNAPSHOT_DATE= -v${_SNAPSHOT_DATE}
|
||||
SNAPSHOT_DATE= -v${BUILDDATE}
|
||||
GCE_FAMILY_SUFX= -snap
|
||||
.endif
|
||||
|
||||
|
@ -23,3 +23,9 @@ GITBRANCH!= ${GIT_CMD} rev-parse --abbrev-ref HEAD 2>/dev/null | sed -e 's/\^\//
|
||||
GITREV!= ${GIT_CMD} rev-parse --verify --short HEAD 2>/dev/null || true
|
||||
.export GITREV
|
||||
.endif
|
||||
|
||||
# Set the build date, primarily for snapshot builds.
|
||||
.if !defined(BUILDDATE) || empty(BUILDDATE)
|
||||
BUILDDATE!= date +%Y%m%d
|
||||
.export BUILDDATE
|
||||
.endif
|
||||
|
@ -24,7 +24,7 @@ DOCBRANCH="main"
|
||||
PORTBRANCH="main"
|
||||
|
||||
## Sample configuration for using git from ports.
|
||||
#GITCMD="/usr/local/bin/git clone --branch main"
|
||||
#GITCMD="/usr/local/bin/git clone -q --branch main"
|
||||
|
||||
## Set to override the default target architecture.
|
||||
#TARGET="amd64"
|
||||
|
@ -68,7 +68,7 @@ env_setup() {
|
||||
echo "*** The devel/git port/package is required."
|
||||
exit 1
|
||||
fi
|
||||
VCSCMD="/usr/local/bin/git clone"
|
||||
VCSCMD="/usr/local/bin/git clone -q"
|
||||
|
||||
# The default git checkout server, and branches for src/, doc/,
|
||||
# and ports/.
|
||||
|
Loading…
Reference in New Issue
Block a user