Date: Sun, 29 Jul 2012 22:08:20 -0700 (PDT) From: Craig Leres <leres@ee.lbl.gov> To: FreeBSD-gnats-submit@FreeBSD.org Cc: leres@ee.lbl.gov Subject: ports/170268: [PATCH] devel/arduino-mk: Fix version.sh script for arduino 1.0.1 Message-ID: <201207300508.q6U58Kcv039290@hot.ee.lbl.gov> Resent-Message-ID: <201207300510.q6U5ABEP036733@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 170268 >Category: ports >Synopsis: [PATCH] devel/arduino-mk: Fix version.sh script for arduino 1.0.1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Jul 30 05:10:11 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Craig Leres >Release: FreeBSD 8.2-RELEASE amd64 >Organization: Lawrence Berkeley National Laboratory >Environment: System: FreeBSD hot.ee.lbl.gov 8.2-RELEASE FreeBSD 8.2-RELEASE #13: Wed Jun 13 18:31:18 PDT 2012 leres@hot.ee.lbl.gov:/usr/src/8.2-RELEASE/sys/amd64/compile/LBLIPV6 amd64 >Description: The current version.sh script in arduino-mk doesn't correctly deal with the new arduino version, 1.0.1. >How-To-Repeat: % cat /usr/local/arduino/lib/version.txt 1.0.1 % /usr/ports/devel/arduino-mk/files/version.sh /usr/local/arduino/lib/version.txt 100 >Fix: Please see attached patch. --- patches.txt begins here --- --- Makefile.orig 2012-07-29 22:05:45.000000000 -0700 +++ Makefile 2012-07-29 22:06:09.000000000 -0700 @@ -6,7 +6,7 @@ # PORTNAME= arduino-mk -PORTVERSION= 0.6 +PORTVERSION= 0.7 CATEGORIES= devel MASTER_SITES= http://mjo.tc/atelier/2009/02/acli/ DISTNAME= ${PORTNAME}_${PORTVERSION} --- files/version.sh.orig 2012-07-29 13:51:35.000000000 -0700 +++ files/version.sh 2012-07-29 13:54:17.000000000 -0700 @@ -17,7 +17,19 @@ echo "${version}" ;; -*) +*.*.*) + echo "${version}" | /usr/bin/sed -e 's/\.//g' + ;; + +*.*.*) + echo "${version}" | /usr/bin/sed -e 's/\.//g' + ;; + +*.*) echo "${version}" | /usr/bin/awk '{ print 100 * $0 }' ;; + +*) + echo "${version}" + ;; esac --- patches.txt ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207300508.q6U58Kcv039290>