]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Update copyright year to use build year instead of hardcoded value
authorcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Sun, 7 Dec 2025 19:06:59 +0000 (19:06 +0000)
committerFlole <Flole998@users.noreply.github.com>
Mon, 8 Dec 2025 12:23:12 +0000 (13:23 +0100)
Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com>
Makefile
src/webui/extjs.c
support/configure.inc

index 5e9688fbb44ae98217ce0afce4a3343e55216c88..571f565b1406dc43fd6cec0bf2f1474ca256cabf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -761,15 +761,19 @@ include ${ROOTDIR}/support/${OSENV}.mk
 
 # Build files
 DATE_FMT = %Y-%m-%dT%H:%M:%S%z
+YEAR_FMT = %Y
 ifdef SOURCE_DATE_EPOCH
        BUILD_DATE ?= $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" "+$(DATE_FMT)"  2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" "+$(DATE_FMT)" 2>/dev/null || date -u "+$(DATE_FMT)")
+       BUILD_YEAR ?= $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" "+$(YEAR_FMT)"  2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" "+$(YEAR_FMT)" 2>/dev/null || date -u "+$(YEAR_FMT)")
 else
        BUILD_DATE ?= $(shell date "+$(DATE_FMT)")
+       BUILD_YEAR ?= $(shell date "+$(YEAR_FMT)")
 endif
 $(BUILDDIR)/timestamp.c: FORCE
        @mkdir -p $(dir $@)
        @echo '#include "build.h"' > $@
        @echo 'const char* build_timestamp = "'$(BUILD_DATE)'";' >> $@
+       @echo 'const char* build_year = "'$(BUILD_YEAR)'";' >> $@
 
 $(BUILDDIR)/timestamp.o: $(BUILDDIR)/timestamp.c
        $(pCC) $(CFLAGS) -c -o $@ $<
index 73b338a21f168b3c83f423be2cd98569192f2af3..0cd952859dc6175343942a23a140cf4afc01830d 100644 (file)
@@ -187,10 +187,10 @@ page_about(http_connection_t *hc, const char *remain, void *opaque)
 
   htsbuf_qprintf(hq, "<center class=\"about-tab\">\n\
 <div class=\"about-title\">HTS Tvheadend %s</div>\n\
-<p>&copy; 2006 - 2024 Andreas Smas, Jaroslav Kysela, Adam Sutton, et al.</p>\n\
+<p>&copy; 2006 - %s Andreas Smas, Jaroslav Kysela, Adam Sutton, et al.</p>\n\
 <p><img class=\"logobig\" src=\"static/img/logobig.png\"></p>\n\
 <p><a href=\"https://tvheadend.org\">https://tvheadend.org</a></p>\n",
-    tvheadend_version);
+    tvheadend_version, build_year);
 
   htsbuf_qprintf(hq, "<p>%s \n\
 <a target=\"_blank\" href=\"http://www.extjs.com/\">ExtJS</a>. \
index 905685cb5d4ea7d1b9cd190dbb1c6ea6ce09832b..ba950dd4418812560049596b668a6c0ace4f1a58 100755 (executable)
@@ -574,6 +574,7 @@ EOF
   cat >> "${CONFIG_H}" <<EOF
 extern const char* build_config_str;
 extern const char* build_timestamp;
+extern const char* build_year;
 EOF
 
   # Create C source