summaryrefslogtreecommitdiff
path: root/src/ipa/ipa-sign-install.sh
blob: bcedb8b5cdd1d7115499be1b371d4bb931b5eb35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2020, Google Inc.
#
# Author: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
#
# ipa-sign-install.sh - Regenerate IPA module signatures when installing

key=$1
shift
modules=$*

ipa_sign=$(dirname "$0")/ipa-sign.sh

echo "Regenerating IPA modules signatures"

for module in ${modules} ; do
	module="${MESON_INSTALL_DESTDIR_PREFIX}/${module}"
	if [ -f "${module}" ] ; then
		"${ipa_sign}" "${key}" "${module}" "${module}.sign"
	fi
done