/
githubmirror
/
libtpms
Обзор
Документация
Войти
/
githubmirror
/
libtpms
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
scripts/meld-find
23 строки
417 B
Stefan Berger
scripts: Implement scripts to be able to use meld on upstream codebase
01 авг 2025, 01:57
01 авг 2025, 01:57
5de6c7f
Код
Авторство
О чём код?
#!/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"