mirror of
https://git.freebsd.org/ports.git
synced 2025-06-09 14:50:31 -04:00
This is a makefile written by Martin Atelier that makes it possible to build Arduino sketches with gmake. An example sketch and Makefile; it is installed in share/examples/arduino-mk PR: ports/156143 Submitted by: Craig Leres <leres@ee.lbl.gov> (maintainer) Approved by: gabor (mentor, implicit) Feature safe: yes
23 lines
391 B
Bash
23 lines
391 B
Bash
#!/bin/sh
|
|
# @(#) $Id: version.sh 5 2011-12-28 18:41:41Z leres $ (XSE)
|
|
|
|
# The ARDUINO version should (a) be in an include file and
|
|
# (b) should (at a minimum) be cpp friendly
|
|
|
|
if [ $# -ne 1 ]; then
|
|
echo "usage: $0 version.txt" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
version="`cat $1`" || exit 1
|
|
|
|
case "${version}" in
|
|
|
|
0*)
|
|
echo "${version}"
|
|
;;
|
|
|
|
*)
|
|
echo "${version}" | /usr/bin/awk '{ print 100 * $0 }'
|
|
;;
|
|
esac
|