aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2024-03-04 19:50:48 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2024-03-04 19:50:48 +0000
commit7fe785b2311543c5c3f14d23234ce4cf992a9fe9 (patch)
tree8656b71df849cd7d5149ceda492ab2eb8e875ef6
parent7bb5d3d53cd124964e0eb714eae6d4cfb9535b66 (diff)
lib/make.sh (build): Print stamps of directory srcdir instead of symlink
It seems 'test -nt' does not check the same dates as reported by 'stat -c %Y'. Change-Id: Ia403b4b23b6768cf3ef3623559b79f758d34b9cb
-rw-r--r--lib/make.sh4
-rw-r--r--lib/stamp.sh3
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/make.sh b/lib/make.sh
index e652a03a..c215bb9f 100644
--- a/lib/make.sh
+++ b/lib/make.sh
@@ -337,7 +337,7 @@ build()
return $?
fi
# For debug purpose, print modification dates after configure
- notice "Source dir stamp after configure: ${srcdir} $(dryrun "stat -c %Y ${srcdir}")"
+ notice "Source dir stamp after configure: ${srcdir} $(dryrun "stat -c %Y ${srcdir}") ${srcdir}/ $(dryrun "stat -c %Y ${srcdir}/")"
# Clean the build directories when forced
if test x"${force}" = xyes; then
@@ -375,7 +375,7 @@ build()
create_stamp "${stampdir}" "${stamp}"
# For debug purpose, print modification dates after configure
- notice "Source dir stamp after build: ${srcdir} $(dryrun "stat -c %Y ${srcdir}")"
+ notice "Source dir stamp after build: ${srcdir} $(dryrun "stat -c %Y ${srcdir}") ${srcdir}/ $(dryrun "stat -c %Y ${srcdir}/")"
local tag="$(create_release_tag ${component})"
notice "Done building ${tag}${2:+ $2}, took ${SECONDS} seconds"
diff --git a/lib/stamp.sh b/lib/stamp.sh
index 2fd32a6a..46ac155e 100644
--- a/lib/stamp.sh
+++ b/lib/stamp.sh
@@ -136,6 +136,9 @@ check_stamp()
notice "--force is being used${stamp_type:+, ${stamp_type}ing..}."
else
notice "${compare_file} ($(dryrun "stat -c %Y ${compare_file}")) is newer than ${stamp_loc}/${stamp_name} ($(dryrun "stat -c %Y ${stamp_loc}/${stamp_name}"))${stamp_type:+, ${stamp_type}ing..}."
+ if [ -d "${compare_file}" ]; then
+ notice "Directory stamp for ${compare_file}/ ($(dryrun "stat -c %Y ${compare_file}"))"
+ fi
fi
return 1
else