From 16a892d5b0c4a928a2a2f9db04d191ed48caa268 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Fri, 18 Jul 2014 16:54:56 -0400 Subject: helper file to fix discrepancy between board and schematics --- scripts/value_fix.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 scripts/value_fix.sh diff --git a/scripts/value_fix.sh b/scripts/value_fix.sh new file mode 100755 index 0000000..3858401 --- /dev/null +++ b/scripts/value_fix.sh @@ -0,0 +1,25 @@ +#!/bin/sh +# FILE: "/home/evmik/eagle/scripts/value_fix.sh" +# LAST MODIFICATION: "Fri, 18 Jul 2014 16:54:10 -0400 (evmik)" +# (C) 2014 by Eugeniy Mikhailov, +# $Id:$ + + +# Tries to fix eagle schematic to board discrepancy if some one ascendantly changes values in schematic while +# the board file was not connected + +# To avoid gotchas copy the board file into t.brd, it will be edited in place. +# Once you happy with fixes overwrite the original eagle board file with t.brd + +# Look thought the diff and file list of parts with updated values +git diff | grep '+part.list + +# Now update components values in the board file. +# Assumes that board file is copied into t.brd file +cat part.list | \ +while read part v +do + echo zzz $part zzz $v + sed -i s\z'\(