Skip to content

Commit

Permalink
Add tag target
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Feb 6, 2017
1 parent 2491efc commit 8b16d11
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,19 @@ drop-pkg:
cd build; 7z a uf2-samd21-$(VERSION).zip uf2-samd21-$(VERSION)
rm -rf build/uf2-samd21-$(VERSION)

tag:
$(MAKE) VERSION=`awk '/define UF2_VERSION_BASE/ { gsub(/"v?/, ""); print $$3 }' inc/uf2.h` do-tag

do-tag:
git add inc/uf2.h
git diff --exit-code
git commit -m "v$(VERSION)"
git tag "v$(VERSION)"
git push
git push --tag
$(MAKE) drop


drop:
for f in `cd boards; ls` ; do $(MAKE) BOARD=$$f drop-board ; done
$(MAKE) VERSION=`awk '/define UF2_VERSION_BASE/ { gsub(/"v?/, ""); print $$3 }' inc/uf2.h` drop-pkg
Expand Down
2 changes: 1 addition & 1 deletion inc/uf2.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#define INDEX_URL "https://www.pxt.io/"
#endif

#define UF2_VERSION_BASE "v1.16.0"
#define UF2_VERSION_BASE "v1.17.0"

// needs to be more than ~4200 (to force FAT16)
#define NUM_FAT_BLOCKS 8000
Expand Down

0 comments on commit 8b16d11

Please sign in to comment.