Change the way AUTO_ARDUINO_VERSION is computed
adds another pass to sed to remove the '1:' from debian version numbers
This commit is contained in:
parent
c81cc332f5
commit
d8c357f6d6
2 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,8 @@ A Makefile for Arduino Sketches
|
|||
The following is the rough list of changes that went into different versions. I tried to give credit whenever possible. If I have missed anyone, kindly add it to the list.
|
||||
|
||||
### 0.10.6 (in development)
|
||||
- fix whitespace and add /dev/null redirection (https://github.com/sej7278)
|
||||
- Fix whitespace and add /dev/null redirection (https://github.com/sej7278)
|
||||
- Change the way AUTO_ARDUINO_VERSION is computed (https://github.com/sej7278)
|
||||
|
||||
### 0.10.5 (2013-06-11)
|
||||
- Add USB_VID and USB_PID to CPPFLAGS only if the board is Leonardo.
|
||||
|
|
|
@ -257,7 +257,7 @@ ifndef ARDUINO_VERSION
|
|||
# Remove all the decimals, and right-pad with zeros, and finally grab the first 3 bytes.
|
||||
# Works for 1.0 and 1.0.1
|
||||
VERSION_FILE := $(ARDUINO_DIR)/lib/version.txt
|
||||
AUTO_ARDUINO_VERSION := $(shell [ -e $(VERSION_FILE) ] && cat $(VERSION_FILE) | sed -e 's/[.]//g' -e 's/$$/0000/' | head -c3)
|
||||
AUTO_ARDUINO_VERSION := $(shell [ -e $(VERSION_FILE) ] && cat $(VERSION_FILE) | sed -e 's/^[0-9]://g' -e 's/[.]//g' -e 's/$$/0000/' | head -c3)
|
||||
ifdef AUTO_ARDUINO_VERSION
|
||||
ARDUINO_VERSION = $(AUTO_ARDUINO_VERSION)
|
||||
$(call show_config_variable,ARDUINO_VERSION,[AUTODETECTED])
|
||||
|
|
Loading…
Reference in a new issue