From 6c8c3205ecffed13344f1afd4cf67eec36165028 Mon Sep 17 00:00:00 2001 From: Rafal Stefanowski Date: Wed, 11 May 2022 13:41:30 +0200 Subject: [PATCH] copyright/license: Generate current year in copyright file during DEB package creation Signed-off-by: Rafal Stefanowski --- tools/pckgen.d/deb/debian/copyright | 2 +- tools/pckgen.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/pckgen.d/deb/debian/copyright b/tools/pckgen.d/deb/debian/copyright index c1dc35c..f48e04b 100644 --- a/tools/pckgen.d/deb/debian/copyright +++ b/tools/pckgen.d/deb/debian/copyright @@ -3,5 +3,5 @@ Upstream-Name: Intel Corporation Source: Files: * -Copyright: 2019-2021 Intel Corporation +Copyright: 2019- Intel Corporation License: diff --git a/tools/pckgen.sh b/tools/pckgen.sh index dc7b393..84b15c2 100755 --- a/tools/pckgen.sh +++ b/tools/pckgen.sh @@ -354,6 +354,7 @@ deb_control_files_prepare() { sed -i "s//${CAS_GIT//\//\\/}/g" "$file" sed -i "s//$PACKAGE_MAINTAINER/g" "$file" sed -i "s//$PACKAGE_DATE/g" "$file" + sed -i "s//$(date +%Y)/g" "$file" done if [ "$DEBUG" ]; then