You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CMSIS-DSP/Scripts/git/git-version.smudge

9 lines
257 B
Bash

#!/bin/bash
DIRNAME=$(dirname $(readlink -f $0))
DESCRIBE=$(readlink -f ${DIRNAME}/git_describe.sh)
VERSION=$(${DESCRIBE} v)
sed -e "s/release version=\"0.0.0\"/release version=\"${VERSION}\"/" | \
sed -e "s/Cversion=\"0.0.0\"/Cversion=\"${VERSION}\"/"