mirror of https://github.com/rusefi/rusefi-1.git
20 lines
547 B
Bash
Executable File
20 lines
547 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# file gen_signature.sh
|
|
|
|
SHORT_BOARDNAME=$1
|
|
|
|
|
|
SIGNATURE_FILE_NAME=tunerstudio/generated/signature_${SHORT_BOARDNAME}.txt
|
|
echo "Generating signature for ${SHORT_BOARDNAME}"
|
|
|
|
# generate a unique signature
|
|
date=`TZ=Europe/London date +"%Y.%m.%d"`
|
|
echo "! Generated by gen_signature.sh" > ${SIGNATURE_FILE_NAME}
|
|
|
|
echo "! SIGNATURE_HASH is a built-in variable generated by ConfigDefinition.jar" >> ${SIGNATURE_FILE_NAME}
|
|
|
|
echo "#define TS_SIGNATURE \"rusEFI $date.${SHORT_BOARDNAME}.@@SIGNATURE_HASH@@\"" >> ${SIGNATURE_FILE_NAME}
|
|
|
|
exit 0
|