Public
Snippet $1655262 authored by Артем Буслов

Сборка по списку ревизий

Edited
refs_build.sh
#!/bin/bash

PREFIX=builds
#REFS="good bad var1 var2 var3"
REFS=$(git log --reverse --format=%H ebb263671e261b0e56b75e98381b1db73ef91b07^..master)

rm $PREFIX/*
mkdir -p $PREFIX
echo "INFO" >$PREFIX/INFO

for ref in $REFS;
do
	echo $ref
	git checkout $ref
	make TARGET=ebike_fw all
	FILNAME=ebike_fw-`git describe --tags --dirty --always`.hex
	mv ebike_fw.hex $PREFIX/$FILNAME
	echo "$FILNAME ($ref):" >>$PREFIX/INFO
	git log -1 --format=%s >>$PREFIX/INFO
	echo >>$PREFIX/INFO
	rm *.o *.hex *.elf *.bin
done
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!