Skip to content

Commit

Permalink
Improved the compile and flash scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
CelliesProjects committed Apr 4, 2018
1 parent fc85b90 commit 5525113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions compile.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
echo -n 'const char * sketchVersion = "' > gitTagVersion.h
git --no-pager describe --tags --always --dirty | tr --delete '\n' >>gitTagVersion.h
echo -n '";' >> gitTagVersion.h
echo "const char * sketchVersion = \"$(git describe --tags --always --dirty)\";" > gitTagVersion.h
~/arduino-1.8.5/arduino --verify test.ino
rm gitTagVersion.h
4 changes: 1 addition & 3 deletions flash.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
echo -n 'const char * sketchVersion = "' > gitTagVersion.h
git --no-pager describe --tags --always --dirty | tr --delete '\n' >>gitTagVersion.h
echo -n '";' >> gitTagVersion.h
echo "const char * sketchVersion = \"$(git describe --tags --always --dirty)\";" > gitTagVersion.h
~/arduino-1.8.5/arduino --upload test.ino --pref custom_DebugLevel=esp32_none
rm gitTagVersion.h

0 comments on commit 5525113

Please sign in to comment.