[Pkg-electronics-commits] [geda-gaf] 02/03: Add bashims.diff patch to fix bashisms in some example scripts
أحمد المحمودي (Ahmed El-Mahmoudy)
aelmahmoudy at sabily.org
Sat Dec 6 13:21:56 UTC 2014
This is an automated email from the git hooks/post-receive script.
aelmahmoudy-guest pushed a commit to branch master
in repository geda-gaf.
commit 1cc1f34fca6aba12d0a49d8cb12c3d082dfd6919
Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at users.sourceforge.net>
Date: Sat Dec 6 15:19:56 2014 +0200
Add bashims.diff patch to fix bashisms in some example scripts
Closes: #772246
---
debian/patches/bashims.diff | 50 +++++++++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 51 insertions(+)
diff --git a/debian/patches/bashims.diff b/debian/patches/bashims.diff
new file mode 100644
index 0000000..dd99154
--- /dev/null
+++ b/debian/patches/bashims.diff
@@ -0,0 +1,50 @@
+Description: Fix bashims
+Bug-Debian: https://bugs.debian.org/772246
+Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at users.sourceforge.net>
+--- a/gnetlist/scripts/bom_xref.sh.in
++++ b/gnetlist/scripts/bom_xref.sh.in
+@@ -3,7 +3,7 @@
+
+ if [ -z "$1" ] ; then
+ echo "usage $0 geda-bom # output on stdout"
+- exit -1
++ exit 255
+ fi
+ cat $1 | sort -k1,1 |\
+ @AWK@ '!/device/{printf("%-5s %-20s %-20s %-20s\n", toupper($1), toupper($2), toupper($3), toupper($4));} /device/{}'
+--- a/gnetlist/scripts/bompp.sh.in
++++ b/gnetlist/scripts/bompp.sh.in
+@@ -3,7 +3,7 @@
+
+ if [ -z "$1" ] ; then
+ echo "usage $0 geda-bom # output on stdout"
+- exit -1
++ exit 255
+ fi
+ cat $1 | @AWK@ '{print toupper($2)" "toupper($3)" "toupper($4)" "toupper($1)}'\
+ | sort +0 | @AWK@ '\
+--- a/gnetlist/scripts/sch2eaglepos.sh
++++ b/gnetlist/scripts/sch2eaglepos.sh
+@@ -17,7 +17,7 @@
+ By Braddock Gaskill (braddock at braddock.com), August 2004
+
+ EOF
+- exit -1
++ exit 255
+ fi
+ XOFFSET=40000
+ YOFFSET=33000
+@@ -44,11 +44,11 @@
+ grep -B1 refdes= "$FNAME" |sed 's/=/ /' | cut -d" " -f2,3 |grep -v '^--' >${tmpf}
+
+
+-while read; do
++while read REPLY; do
+ # the directory on the client to backup
+ X=`echo $REPLY | cut -d' ' -f1`
+ Y=`echo $REPLY | cut -d' ' -f2`
+- read;
++ read REPLY;
+ PART="$REPLY"
+ X=`echo "scale=5; ($X - $XOFFSET) / $XSCALE" |bc`
+ Y=`echo "scale=5; ($Y - $YOFFSET) / $YSCALE" |bc`
diff --git a/debian/patches/series b/debian/patches/series
index db38e37..2c7b5c3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
no-refdes-warning-fix.patch
+bashims.diff
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-electronics/geda-gaf.git
More information about the Pkg-electronics-commits
mailing list