From 9053f9ffb88622b5983d08fc58b2c214008af934 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 15 Mar 2013 14:13:20 +0100 Subject: [PATCH 1/3] added new snippet to workaround an eagle bug --- bash/eagle.sh | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 bash/eagle.sh diff --git a/bash/eagle.sh b/bash/eagle.sh new file mode 100755 index 0000000..e494741 --- /dev/null +++ b/bash/eagle.sh @@ -0,0 +1,42 @@ +#!/bin/bash +## + # Startup wrapper to workaround a bug in EAGLE + # + # Cadsoft EAGLE fails to open filename including whitespaces on linux systems. + # This script creates a temporary symlink and redirects the supplied filename to + # the temporary one. + # + # @copyright 2013 Steffen Vogel + # @license http://www.gnu.org/licenses/gpl.txt GNU Public License + # @author Steffen Vogel + # @link http://www.steffenvogel.de/ + ## +## + # This script is free software: you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation, either version 3 of the License, or + # any later version. + # + # This script is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this script. If not, see . + ## + +ARGS=$@ +FILE=$1 +SUF=${FILE##*.} + +if [ "$SUF" = "brd" -o "$SUF" = "sch" -o "$SUF" = "epf" ] +then + FILE=$(readlink -f "$FILE") + ARGS=/tmp/eagle.$SUF + ln -sf "$FILE" "$ARGS" +fi + +LD_LIBRARY_PATH=/opt/libpng14/lib /opt/eagle-6.1.0/bin/eagle $ARGS + +rm -f /tmp/eagle.* From 2acb97da4bfa23ecb000162355f9d710e46de188 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 15 Mar 2013 14:14:54 +0100 Subject: [PATCH 2/3] renamed mountl2p script --- bash/{mountl2p => mountl2p.sh} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename bash/{mountl2p => mountl2p.sh} (100%) diff --git a/bash/mountl2p b/bash/mountl2p.sh similarity index 100% rename from bash/mountl2p rename to bash/mountl2p.sh From 66282b5eae8f17d52f75661a539a12b5922b6bcc Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 15 Mar 2013 18:07:43 +0100 Subject: [PATCH 3/3] added support for forward/backward annotation --- bash/eagle.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bash/eagle.sh b/bash/eagle.sh index e494741..4f3c838 100755 --- a/bash/eagle.sh +++ b/bash/eagle.sh @@ -30,11 +30,17 @@ ARGS=$@ FILE=$1 SUF=${FILE##*.} -if [ "$SUF" = "brd" -o "$SUF" = "sch" -o "$SUF" = "epf" ] -then +if [ "$SUF" = "brd" -o "$SUF" = "sch" -o "$SUF" = "epf" ]; then FILE=$(readlink -f "$FILE") ARGS=/tmp/eagle.$SUF + ln -sf "$FILE" "$ARGS" + + if [ "$SUF" = "brd" ]; then + ln -sf "${FILE%.*}.sch" /tmp/eagle.sch + elif [ "$SUF" = "sch" ]; then + ln -sf "${FILE%.*}.brd" /tmp/eagle.brd + fi fi LD_LIBRARY_PATH=/opt/libpng14/lib /opt/eagle-6.1.0/bin/eagle $ARGS