mirror of
https://github.com/1technophile/OpenMQTTGateway.git
synced 2026-03-03 22:14:26 +01:00
#579 Update doc to reflect necessary manual changes Implement a part of these changes to automatic script
20 lines
551 B
Bash
20 lines
551 B
Bash
echo "renaming bin files with the board name"
|
|
rename -v 's:/:-:g' .pio/build/*/*.bin
|
|
mkdir toDeploy
|
|
rename 's/.pio-build-//' .*.bin
|
|
cd .pio/libdeps
|
|
echo "replace space by _ in folder names"
|
|
find . -type d -name "* *" | while read FNAME; do mv "$FNAME" "${FNAME// /_}"; done
|
|
echo "zipping libraries per board"
|
|
for i in */; do zip -r "${i%/}-libraries.zip" "$i"; done
|
|
ls -la
|
|
mv *.zip ../../toDeploy
|
|
cd ../..
|
|
echo "zipping code and licence"
|
|
zip -r OpenMQTTGateway_sources.zip main LICENSE.txt
|
|
mv *.zip toDeploy
|
|
mv *.bin toDeploy
|
|
cd toDeploy
|
|
ls -la
|
|
cd ..
|