diff options
author | Damien George <damien.p.george@gmail.com> | 2014-05-04 00:11:09 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-05-04 00:11:09 +0000 |
commit | 37936bebbf5f0e6046f25c6f5cf9e867b2b5d9ab (patch) | |
tree | 6bc4acfbd3aaa7a02289e744458994b1abe5b9e3 /tools | |
parent | 04b9147e150d2d6fa3750f312fe328b6a71c1b28 (diff) | |
download | micropython-37936bebbf5f0e6046f25c6f5cf9e867b2b5d9ab.tar.gz micropython-37936bebbf5f0e6046f25c6f5cf9e867b2b5d9ab.zip |
tools: In build-stm-latest, replace git hash with git tag.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/build-stm-latest.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/build-stm-latest.sh b/tools/build-stm-latest.sh index f0d639d10f..3b58308de9 100755 --- a/tools/build-stm-latest.sh +++ b/tools/build-stm-latest.sh @@ -17,8 +17,8 @@ fi # get the date date=$(date '+%Y-%m-%d') -# get the git hash -git_hash="$(git rev-parse --short HEAD 2> /dev/null || echo unknown)" +# get the git tag +git_tag="$(git describe --dirty || echo unknown)" # build the versions for board in PYBV3 PYBV10; do @@ -26,6 +26,6 @@ for board in PYBV3 PYBV10; do lower_board=$(echo $board | tr A-Z a-z) build_dir=/tmp/stm-build-$board make -B BOARD=$board BUILD=$build_dir || exit 1 - mv $build_dir/firmware.dfu $dest_dir/$lower_board-$date-$git_hash.dfu + mv $build_dir/firmware.dfu $dest_dir/$lower_board-$date-$git_tag.dfu rm -rf $build_dir done |