Skip to content

Commit 4ae204a

Browse files
committed
Pick version for builds from source code
1 parent 47f6ae4 commit 4ae204a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

package-arduino-preprocessor.bash

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
# along with this program; if not, write to the Free Software
1616
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1717

18-
# TODO: Fetch this from somewhere in the source code
19-
ARDUINO_PREPROCESSOR_VERSION=0.0.1
18+
ARDUINO_PREPROCESSOR_VERSION=`cat Config.hpp | grep VERSION | sed 's/[^"]*"\([^"]*\)".*/\1/'`
2019

2120
OUTPUT_VERSION=${ARDUINO_PREPROCESSOR_VERSION}
2221

0 commit comments

Comments
 (0)