Skip to content

Commit

Permalink
tool for release generation, update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolay-Kha committed Oct 31, 2015
1 parent 1b55e99 commit da009f3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Binary file modified DeviceHiveESP8266.pdf
Binary file not shown.
19 changes: 19 additions & 0 deletions gen_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

set -e

DIR=$(realpath $(dirname $0))
VER=$(grep FIRMWARE_VERSION firmware-src/sources/user_config.h | cut -d'"' -f2)
DSTDIR=$DIR/../dh-esp-firmware-v$VER

mkdir -p $DSTDIR
rm -rf $DSTDIR/*

cp $DIR/examples $DSTDIR -r
cp $DIR/release/utils/* $DSTDIR
cp $DIR/*.pdf $DSTDIR
(cd $DIR/firmware-src && make clean all) && cp $DIR/firmware-src/firmware/* $DSTDIR
zip -r -q $DSTDIR/../dh-esp-firmware-v$VER.zip $DSTDIR
tar -czf $DSTDIR/../dh-esp-firmware-v$VER.tar.gz $DSTDIR


0 comments on commit da009f3

Please sign in to comment.