Project

General

Profile

Task #570

avrdude port detection

Added by Chris Mar over 14 years ago. Updated over 14 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
09/07/2009
Due date:
% Done:

100%


Description

Change all Makefiles (that program robots) in the repo to use avrdude port detection (com4 vs /dev/ttyUSB0).

Associated revisions

Revision 1390 (diff)
Added by Rich Hong over 14 years ago

fixes #570 avrdude port detection

History

#1 Updated by Rich Hong over 14 years ago

  • Target version set to Misc.

One line bash to update all Makefile.

for file in `find . -name Makefile | grep -v " "`; do; sed -E 's/^AVRDUDE_PORT.*/AVRDUDE_PORT = $(shell if uname -s |grep -i w32 >\/dev\/null; then echo \''COM4:\''; else echo \''\/dev\/ttyUSB0\''; fi)/' "$file" > "${file}_new"; mv "${file}_new" "${file}"; done

#2 Updated by Rich Hong over 14 years ago

  • Status changed from Assigned to Fixed
  • % Done changed from 0 to 100

Applied in changeset r1390.

Also available in: Atom PDF