-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show branch names in branches other than master.
- Loading branch information
1 parent
b30371d
commit ac7d74e
Showing
2 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
echo Compiling aquacontrol32 version: $(git describe --tags --always) | ||
echo We are on branch: $(git branch | grep \* | cut -d ' ' -f2) | ||
echo Branch: $(git branch | grep \* | cut -d ' ' -f2) | ||
echo | ||
echo "const char * sketchVersion = \"$(git describe --tags --always)\";" > gitTagVersion.h | ||
~/arduino-1.8.9/arduino --board espressif:esp32:mhetesp32minikit --verify test.ino --pref custom_DebugLevel=esp32_none --port /dev/ttyUSB0 --pref upload.speed=921600 --pref build.path=temp --preserve-temp-files | ||
if [ $(git branch | grep \* | cut -d ' ' -f2) == "master" ] | ||
then | ||
echo "const char * sketchVersion = \"$(git describe --tags --always)\";" > gitTagVersion.h | ||
else | ||
echo "const char * sketchVersion = \"$(git describe --tags --always):$(git branch | grep \* | cut -d ' ' -f2)\";" > gitTagVersion.h | ||
fi | ||
echo $(git describe --tags --always):$(git branch | grep \* | cut -d ' ' -f2) | ||
~/arduino-1.8.9/arduino --board espressif:esp32:mhetesp32minikit --verify test.ino --pref custom_DebugLevel=esp32_none --port /dev/ttyUSB0 --pref upload.speed=921600 --pref build.path=temp --preserve-temp-files --pref build.partition=default_ffat | ||
rm gitTagVersion.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters