Skip to content

Commit 9c65810

Browse files
committed
kbuild: deb-pkg: split debian/copyright from the mkdebian script
Copy debian/copyright instead of generating it by the 'cat' command. I also updated '2018' to '2023' while I was here. Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Nicolas Schier <[email protected]>
1 parent f3b2306 commit 9c65810

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed

scripts/package/debian/copyright

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
This is a packaged upstream version of the Linux kernel.
2+
3+
The sources may be found at most Linux archive sites, including:
4+
https://www.kernel.org/pub/linux/kernel
5+
6+
Copyright: 1991 - 2023 Linus Torvalds and others.
7+
8+
The git repository for mainline kernel development is at:
9+
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
10+
11+
This program is free software; you can redistribute it and/or modify
12+
it under the terms of the GNU General Public License as published by
13+
the Free Software Foundation; version 2 dated June, 1991.
14+
15+
On Debian GNU/Linux systems, the complete text of the GNU General Public
16+
License version 2 can be found in `/usr/share/common-licenses/GPL-2'.

scripts/package/mkdebian

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -188,26 +188,6 @@ $sourcename ($packageversion) $distribution; urgency=low
188188
-- $maintainer $(date -R)
189189
EOF
190190

191-
# Generate copyright file
192-
cat <<EOF > debian/copyright
193-
This is a packaged upstream version of the Linux kernel.
194-
195-
The sources may be found at most Linux archive sites, including:
196-
https://www.kernel.org/pub/linux/kernel
197-
198-
Copyright: 1991 - 2018 Linus Torvalds and others.
199-
200-
The git repository for mainline kernel development is at:
201-
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
202-
203-
This program is free software; you can redistribute it and/or modify
204-
it under the terms of the GNU General Public License as published by
205-
the Free Software Foundation; version 2 dated June, 1991.
206-
207-
On Debian GNU/Linux systems, the complete text of the GNU General Public
208-
License version 2 can be found in \`/usr/share/common-licenses/GPL-2'.
209-
EOF
210-
211191
# Generate a control file
212192
cat <<EOF > debian/control
213193
Source: $sourcename
@@ -268,6 +248,7 @@ ARCH := ${ARCH}
268248
KERNELRELEASE := ${KERNELRELEASE}
269249
EOF
270250

251+
cp "${srctree}/scripts/package/debian/copyright" debian/
271252
cp "${srctree}/scripts/package/debian/rules" debian/
272253

273254
exit 0

0 commit comments

Comments
 (0)