Add the full license header to build-metapackages.sh
[kernel-tools.git] / metapackages / build-metapackages.sh
1 #!/bin/bash
2 set -euo pipefail
3 #set -x
4
5 # You can redistribute and/or modify this file under the terms of the
6 # GNU Affero General Public License as published by the Free Software
7 # Foundation, either version 3 of the License, or (at your option)
8 # any later version.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Affero General Public License for more details.
14 #
15 # You should have received a copy of the GNU Affero General Public
16 # License along with this program. If not, see
17 # <https://www.gnu.org/licenses/>.
18
19 # SPDX-FileCopyrightText: 2022 Jason Self <j@jxself.org>
20 # SPDX-License-Identifier: AGPL-3.0-or-later
21 #
22 # This builds the metapackages for APT.
23
24 metapackages=(
25     freesh-archive-keyring
26     liberty-archive-keyring
27 )
28
29 for package in "${metapackages[@]}"
30 do
31     :
32     for keyfile in keys/*.asc
33     do
34         gpg --verbose --no-default-keyring --keyring $package/usr/share/keyrings/$package.gpg --import $keyfile || gpg --no-default-keyring --keyring $package/usr/share/keyrings/$package.gpg --import $keyfile
35     done
36     dpkg-deb --root-owner-group -b $package
37 done