aboutsummaryrefslogtreecommitdiff
path: root/release/Makefile.inc1
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2020-08-12 16:25:25 +0000
committerGlen Barber <gjb@FreeBSD.org>2020-08-12 16:25:25 +0000
commit86e5b1377db87223c20aefbc5bf61c56422d6c8f (patch)
tree3784ae004cc02b4701036ad922cbcde1118b757f /release/Makefile.inc1
parentc7aa572cacdeca83c35c12a378909d0b659300a9 (diff)
downloadsrc-86e5b1377db87223c20aefbc5bf61c56422d6c8f.tar.gz
src-86e5b1377db87223c20aefbc5bf61c56422d6c8f.zip
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)
Notes
Notes: svn path=/projects/release-git/; revision=364170
Diffstat (limited to 'release/Makefile.inc1')
-rw-r--r--release/Makefile.inc16
1 files changed, 6 insertions, 0 deletions
diff --git a/release/Makefile.inc1 b/release/Makefile.inc1
index c8426f2cba31..7d46f79adabd 100644
--- a/release/Makefile.inc1
+++ b/release/Makefile.inc1
@@ -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