From: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Date: Sun, 7 Dec 2025 19:06:59 +0000 (+0000) Subject: Update copyright year to use build year instead of hardcoded value X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6f7e8c4f7e788220c347bfb5f9550c6d57888ea;p=thirdparty%2Ftvheadend.git Update copyright year to use build year instead of hardcoded value Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com> --- diff --git a/Makefile b/Makefile index 5e9688fbb..571f565b1 100644 --- 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 $@ $< diff --git a/src/webui/extjs.c b/src/webui/extjs.c index 73b338a21..0cd952859 100644 --- a/src/webui/extjs.c +++ b/src/webui/extjs.c @@ -187,10 +187,10 @@ page_about(http_connection_t *hc, const char *remain, void *opaque) htsbuf_qprintf(hq, "
© 2006 - 2024 Andreas Smas, Jaroslav Kysela, Adam Sutton, et al.
\n\ +© 2006 - %s Andreas Smas, Jaroslav Kysela, Adam Sutton, et al.
\n\
%s \n\
ExtJS. \
diff --git a/support/configure.inc b/support/configure.inc
index 905685cb5..ba950dd44 100755
--- a/support/configure.inc
+++ b/support/configure.inc
@@ -574,6 +574,7 @@ EOF
cat >> "${CONFIG_H}" <