Files
trezor-firmware/tools/version.sh
2019-08-29 00:01:59 +02:00

8 lines
183 B
Bash
Executable File

#!/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 " "