[Pkg-electronics-commits] [SCM] Packaging for gEDA branch, master, updated. debian/1.6.1-1-3-g1a77602

أحمد المحمودي (Ahmed El-Mahmoudy) aelmahmoudy at sabily.org
Tue May 11 12:16:40 UTC 2010


The following commit has been merged in the master branch:
commit 1a7760285852f7f6778e9a6c097aa77194369089
Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at sabily.org>
Date:   Tue May 11 15:14:55 2010 +0300

    geda-gnetlist: added patch sch2eaglepos_bashism.diff to fix bashisms in
    sch2eaglepos.sh

diff --git a/debian/patches/sch2eaglepos_bashism.diff b/debian/patches/sch2eaglepos_bashism.diff
new file mode 100644
index 0000000..34afd37
--- /dev/null
+++ b/debian/patches/sch2eaglepos_bashism.diff
@@ -0,0 +1,29 @@
+Description: Fix bashism in sch2eaglepos.sh
+ Note that even with #!/bin/bash the original code gave the error that 3 is an
+ invalid file descriptor
+Bug-Debian: http://bugs.debian.org/581098
+Forwarded: https://sourceforge.net/tracker/?func=detail&aid=2999951&group_id=161080&atid=818428
+Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at sabily.org>
+--- a/gnetlist/scripts/sch2eaglepos.sh
++++ b/gnetlist/scripts/sch2eaglepos.sh
+@@ -43,16 +43,16 @@
+ tmpf=${tmpdir}/tmpf
+ grep -B1 refdes= "$FNAME" |sed 's/=/ /' | cut -d" " -f2,3 |grep -v '^--' >${tmpf}
+ 
+-3<$tmpf
+-while read -u 3; do
++
++while read; do
+     # the directory on the client to backup
+     X=`echo $REPLY | cut -d' ' -f1`
+     Y=`echo $REPLY | cut -d' ' -f2`
+-    read -u 3;
++    read;
+     PART="$REPLY"
+     X=`echo "scale=5; ($X - $XOFFSET) / $XSCALE" |bc`
+     Y=`echo "scale=5; ($Y - $YOFFSET) / $YSCALE" |bc`
+     echo "MOVE '$PART' ($X $Y);"
+-done
++done < $tmpf
+ rm -fr "${tmpdir}"
+ 
diff --git a/debian/patches/series b/debian/patches/series
index b174557..2e0e029 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 desktop.diff
 manpage_typos.diff
+sch2eaglepos_bashism.diff

-- 
Packaging for gEDA



More information about the Pkg-electronics-commits mailing list