All of lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: printing-architecture@lists.linux-foundation.org
Subject: [Printing-architecture] [PATCH] braille: drop spurious output from tool checking
Date: Sun, 10 Apr 2016 18:32:22 +0200	[thread overview]
Message-ID: <20160410163222.GT2992@var.home> (raw)
In-Reply-To: <20160410162936.GR2992@var.home>

[-- Attachment #1: Type: text/plain, Size: 71 bytes --]

Checking for tools with "type" is verbose, we need to drop the output.

[-- Attachment #2: patch2 --]
[-- Type: text/plain, Size: 1125 bytes --]

=== modified file 'filter/braille/filters/cups-braille.sh.in'
--- filter/braille/filters/cups-braille.sh.in	2016-01-19 22:48:12 +0000
+++ filter/braille/filters/cups-braille.sh.in	2016-03-31 23:03:27 +0000
@@ -236,7 +236,7 @@ checkTool() {
   TOOL=$1
   PACKAGE=$2
   USE=$3
-  if ! type $TOOL
+  if ! type $TOOL > /dev/null
   then
     printf "ERROR: The $PACKAGE package is required for $USE\n" >&2
     exit 1

=== modified file 'filter/braille/filters/texttobrf.in'
--- filter/braille/filters/texttobrf.in	2016-01-21 01:10:01 +0000
+++ filter/braille/filters/texttobrf.in	2016-04-10 16:06:59 +0000
@@ -96,7 +96,7 @@ setupTextRendering() {
 #  Selected braille table
 if [ -n "$LIBLOUIS_TABLES" ]
 then
-  if type file2brl
+  if type file2brl > /dev/null
   then
     # Good, we can use liblouisutdml
     case $CONTENT_TYPE in
@@ -138,7 +138,7 @@ then
 	;;
     esac
     RENDER_CALL="$LIBLOUIS_TOOL -CliteraryTextTable=$LIBLOUIS_TABLES,braille-patterns.cti $LIBLOUIS_CONFIG"
-  elif type lou_translate
+  elif type lou_translate > /dev/null
   then
     # Only liblouis, but better than nothing
     setupTextRendering

  parent reply	other threads:[~2016-04-10 16:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-10 16:29 [Printing-architecture] [PATCH] braille: various fixes Samuel Thibault
2016-04-10 16:31 ` [Printing-architecture] [PATCH] braille: index: Avoid spurious EOF character Samuel Thibault
2016-04-10 16:32 ` Samuel Thibault [this message]
2016-04-10 16:34 ` [Printing-architecture] [PATCH] braille: Fix banner page printing Samuel Thibault
2016-04-10 17:25 ` [Printing-architecture] [PATCH] braille: various fixes Till Kamppeter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160410163222.GT2992@var.home \
    --to=samuel.thibault@ens-lyon.org \
    --cc=printing-architecture@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.