aboutsummaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2024-05-10 15:15:56 +0000
committerCy Schubert <cy@FreeBSD.org>2024-05-26 22:55:52 +0000
commit1f833b3fc9968c3dd7ed79ccf0525ebf16c891ad (patch)
tree85801af20e3b694584668aeb39ecec75ee71f72c /scripts/build
parentab1f1aa8333369a83ff284848fc3fc2e52d5f29f (diff)
Diffstat (limited to 'scripts/build')
-rw-r--r--scripts/build/Makefile.in1
-rwxr-xr-xscripts/build/checkHtmlFileDates24
-rw-r--r--scripts/build/genAuthors.in1
-rw-r--r--scripts/build/mkver.in2
4 files changed, 25 insertions, 3 deletions
diff --git a/scripts/build/Makefile.in b/scripts/build/Makefile.in
index 51446d9bf3cc..cd023719137b 100644
--- a/scripts/build/Makefile.in
+++ b/scripts/build/Makefile.in
@@ -328,6 +328,7 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_NET_SNMP_CONFIG = @PATH_NET_SNMP_CONFIG@
+PATH_OPENSSL = @PATH_OPENSSL@
PATH_PERL = @PATH_PERL@
PATH_RUBY = @PATH_RUBY@
PATH_SEPARATOR = @PATH_SEPARATOR@
diff --git a/scripts/build/checkHtmlFileDates b/scripts/build/checkHtmlFileDates
index 9d9a2f2625d0..5eae87f7af41 100755
--- a/scripts/build/checkHtmlFileDates
+++ b/scripts/build/checkHtmlFileDates
@@ -1,11 +1,29 @@
#! /bin/sh
-bk version > /dev/null 2>&1 || exit 0
+#
+# checkHtmlFileDates
+#
+# This script is invoked in html directory when any html/*.html file
+# is newer than html/.datecheck to update the last modified time
+# within the HTML. Each file is compared against the checked-in
+# version is compared to any uncommitted edits and if there are
+# any, scripts/build/updateBEDate is used to update the embedded
+# timestamp. html/.datecheck is not distributed in releases so
+# this will be invoked once building a newly-extracted tarball.
+# 'bk diff' is used to check for modifications so if bk is not
+# on the path there's no need to invoke this repeatedly.
+# Therefore touch .datecheck unconditionally right away.
+#
+touch .datecheck
-for i in `find * -type f -name '*.html' -print | grep -v SCCS/`
+# Do nothing if the directory is not a BK repo,
+# or if BK is not even installed.
+bk status > /dev/null 2>&1 || exit 0
+
+for i in `echo *.html`
do
# echo $i
- set `bk diffs $i | wc -l`
+ set `bk diff --normal $i | wc -l`
lines=$1
case "$lines" in
0) ;;
diff --git a/scripts/build/genAuthors.in b/scripts/build/genAuthors.in
index a5a15e1270b0..a1b5a4023acd 100644
--- a/scripts/build/genAuthors.in
+++ b/scripts/build/genAuthors.in
@@ -1,4 +1,5 @@
#! @PATH_PERL@
+# @configure_input@
# DESCRIPTION
#
diff --git a/scripts/build/mkver.in b/scripts/build/mkver.in
index c58d8040f1d9..89ea50bc5e51 100644
--- a/scripts/build/mkver.in
+++ b/scripts/build/mkver.in
@@ -1,4 +1,6 @@
#!@CONFIG_SHELL@
+# @configure_input@
+
PROG=${1-UNKNOWN}
ConfStr="$PROG"