mirror of
https://github.com/hoglet67/AtomBusMon.git
synced 2024-12-22 16:30:06 +00:00
f84780b304
Change-Id: I0f73afe8967909be1a7a3784c64555df2ed4eb16
32 lines
446 B
Bash
Executable File
32 lines
446 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 */*/*.bit ../${DIR}
|
|
cp --parents */*/*.mcs ../${DIR}
|
|
|
|
popd
|
|
|
|
pushd releases
|
|
zip -qr ${NAME}.zip ${NAME}
|
|
popd
|
|
|
|
echo "Built release in: "${DIR}
|
|
unzip -l releases/${NAME}.zip
|
|
|
|
|