1
0
зеркало из https://github.com/trezor/trezor-firmware.git synced 2025-07-01 04:12:37 +00:00
trezor-firmware/tools/version.sh
Martin Milata e7c2800798 build: fix compilation on darwin
[no changelog]
2023-05-10 20:59:00 +02:00

8 строки
185 B
Bash
Исполняемый файл

#!/bin/sh
if [ -z "$1" ]; then
echo "Usage: version.sh path/to/version.h"
exit 1
fi
echo "VERSION_MAJOR.VERSION_MINOR.VERSION_PATCH" | cpp -include $1 -nostdinc -P - | tr -d " "