aboutsummaryrefslogtreecommitdiff
path: root/gdb/syscalls
diff options
context:
space:
mode:
authorEnze Li <enze.li@hotmail.com>2023-02-01 21:26:11 +0800
committerEnze Li <enze.li@hotmail.com>2023-03-28 22:02:19 +0800
commit357bff173eb9b1d055df5158f3e5214e2bf6c19e (patch)
tree52558070e375be4727893591c1fc4e55754d71c9 /gdb/syscalls
parent134ec14b1502f30f0028293b35f57c18e44614d0 (diff)
downloadfsf-binutils-gdb-357bff173eb9b1d055df5158f3e5214e2bf6c19e.zip
fsf-binutils-gdb-357bff173eb9b1d055df5158f3e5214e2bf6c19e.tar.gz
fsf-binutils-gdb-357bff173eb9b1d055df5158f3e5214e2bf6c19e.tar.bz2
gdb: use dynamic year in update-freebsd.sh
When running update-freebsd.sh on FreeBSD, I see the following modification in freebsd.xml, -<!-- Copyright (C) 2009-2023 Free Software Foundation, Inc. +<!-- Copyright (C) 2009-2020 Free Software Foundation, Inc. It means that each time, when we running the update-freebsd.sh on FreeBSD, we have to correct the year of copyright manually. So fix this issue by using dynamic year. Tested by regenerating freebsd.xml on FreeBSD/amd64. Reviewed-By: John Baldwin <jhb@FreeBSD.org> Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/syscalls')
-rwxr-xr-xgdb/syscalls/update-freebsd.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/syscalls/update-freebsd.sh b/gdb/syscalls/update-freebsd.sh
index b5b882e..ce82564 100755
--- a/gdb/syscalls/update-freebsd.sh
+++ b/gdb/syscalls/update-freebsd.sh
@@ -33,10 +33,12 @@ if [ $# -ne 1 ]; then
exit 1
fi
+year=$(date +%Y)
+
cat > freebsd.xml.tmp <<EOF
<?xml version="1.0"?> <!-- THIS FILE IS GENERATED -*- buffer-read-only: t -*- -->
<!-- vi:set ro: -->
-<!-- Copyright (C) 2009-2020 Free Software Foundation, Inc.
+<!-- Copyright (C) 2009-$year Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright