tags 530113 + patch
thanks

Hi,

I would’ve prepared an NMU, but it’s a native package, so here’s just
a diff. Please apply.

10x,
//mirabilos
-- 
Sometimes they [people] care too much: pretty printers [and syntax highligh-
ting, d.A.] mechanically produce pretty output that accentuates irrelevant
detail in the program, which is as sensible as putting all the prepositions
in English text in bold font.   -- Rob Pike in "Notes on Programming in C"
diff -pruN lbdb-0.36~/lbdbq.sh.in lbdb-0.36/lbdbq.sh.in
--- lbdb-0.36~/lbdbq.sh.in      2010-01-24 17:22:16.000000000 +0000
+++ lbdb-0.36/lbdbq.sh.in       2010-01-24 17:23:28.000000000 +0000
@@ -48,7 +48,7 @@ esac
 
 tmpdir=${TMPDIR-/tmp}/query.`hostname`.$$
 mkdir $tmpdir || exit 1
-trap "rm -rf $tmpdir ; trap '' 0; exit 1" 0 1 2 3 15
+trap "rm -rf $tmpdir ; trap '' 0; exit 1" HUP INT QUIT TERM
 trap "rm -rf $tmpdir ; trap '' 0" 0
 collection=$tmpdir/coll
 
diff -pruN lbdb-0.36~/m_bbdb.sh.in lbdb-0.36/m_bbdb.sh.in
--- lbdb-0.36~/m_bbdb.sh.in     2010-01-24 17:22:16.000000000 +0000
+++ lbdb-0.36/m_bbdb.sh.in      2010-01-24 17:25:44.000000000 +0000
@@ -35,11 +35,11 @@ m_bbdb_query()
                      (lbdb-bbdb-query \"$...@\"))"
        if [ -z "$GNUCLIENT" ]
        then
-           if type gnuclient >/dev/null 2>&1; then
+           if which gnuclient >/dev/null 2>&1; then
                GNUCLIENT=gnuclient
            fi
         fi
-       if [ "$GNUCLIENT" == "no" ]; then
+       if [ "$GNUCLIENT" = "no" ]; then
            GNUCLIENT=
        fi
 
@@ -50,12 +50,12 @@ m_bbdb_query()
               success=1
           fi
         fi
-       if [ $success == 0 ]; then
+       if [ $success = 0 ]; then
            if [ -z "$EMACS" ]
            then
-               if type emacs >/dev/null 2>&1; then
+               if which emacs >/dev/null 2>&1; then
                    EMACS=emacs
-               elif type xemacs >/dev/null 2>&1; then
+               elif which xemacs >/dev/null 2>&1; then
                    EMACS=xemacs
                fi
            fi

Reply via email to