All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Levon <levon@movementarian.org>
To: xen-devel@lists.xensource.com
Subject: [PATCH] Make check_pkgs work with the Bourne shell
Date: Mon, 31 Oct 2005 16:06:50 +0000	[thread overview]
Message-ID: <20051031160650.GA3778@trollied.org> (raw)


# HG changeset patch
# User levon@movementarian.org
# Node ID 90c90e3190293954aea956d92302982225b910e5
# Parent  8a8e25ecb86cdf7c9aaa11fabc8b42754b751ca6
Make check_pkgs work with the Bourne shell

diff -r 8a8e25ecb86c -r 90c90e319029 docs/check_pkgs
--- a/docs/check_pkgs	Thu Oct 27 16:50:26 2005 +0000
+++ b/docs/check_pkgs	Mon Oct 31 16:05:32 2005 +0000
@@ -1,14 +1,14 @@
 
 silent_which ()
 {
-        if ! `which $1 1>/dev/null 2>/dev/null`; then
+        which $1 1>/dev/null 2>/dev/null || {
                 echo "*************************************************"
                 echo "*************************************************"
                 echo "* WARNING: Package '$1' is required"
                 echo "*          to build Xen documentation"
                 echo "*************************************************"
                 echo "*************************************************"
-        fi
+        }
         which $1 1>/dev/null 2>/dev/null
 }

                 reply	other threads:[~2005-10-31 16:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20051031160650.GA3778@trollied.org \
    --to=levon@movementarian.org \
    --cc=xen-devel@lists.xensource.com \
    /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.