mirror of
https://github.com/hoglet67/AtomBusMon.git
synced 2024-09-11 20:54:53 +00:00
1b0c0624ff
Change-Id: Ic09c51f721a3c517a43282b053dbdf9a55fba902
31 lines
485 B
Bash
Executable File
31 lines
485 B
Bash
Executable File
#!/bin/bash
|
|
DATE=$(date +"%Y%m%d_%H%M")
|
|
|
|
VERSION=$(grep "define VERSION" firmware/AtomBusMon.c | cut -d\" -f2 | tr -d "." )
|
|
|
|
NAME=ice_${DATE}_${VERSION}
|
|
|
|
DIR=releases/$NAME/
|
|
|
|
echo "Building release in: "${DIR}
|
|
|
|
mkdir -p ${DIR}
|
|
|
|
pushd target
|
|
|
|
make clean
|
|
make
|
|
|
|
cp --parents */*/ice*.bit ../${DIR}
|
|
cp --parents */*/ice*.bin ../${DIR}
|
|
cp --parents */*/ice*.mcs ../${DIR}
|
|
|
|
popd
|
|
|
|
pushd releases
|
|
zip -qr ${NAME}.zip ${NAME}
|
|
popd
|
|
|
|
echo "Built release in: "${DIR}
|
|
unzip -l releases/${NAME}.zip
|