mirror of
https://github.com/stefanberger/libtpms
synced 2025-12-26 06:12:50 +00:00
24 lines
417 B
Bash
Executable File
24 lines
417 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ ! -f "$1" ]; then
|
|
echo "Cannot find file '$1' in libtpms repo."
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "${TCG_TPM_HOME}" ]; then
|
|
echo "TCG_TPM_HOME must be set to the TCG TPM repo checkout."
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -d "${TCG_TPM_HOME}" ]; then
|
|
echo "TCG_TPM_HOME must point to a directory."
|
|
exit 1
|
|
fi
|
|
|
|
|
|
fname=$(basename "$1")
|
|
|
|
upstream=$(find "${TCG_TPM_HOME}" | grep -E "/${fname}\$")
|
|
|
|
meld "${upstream}" "$1"
|