From: Bryan Hundven <bryanhundven@gmail.com>
To: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: crossgcc@sourceware.org
Subject: [PATCH] scripts/showSamples.sh: fix list-samples
Date: Tue, 03 Jul 2012 03:22:00 -0000 [thread overview]
Message-ID: <e489fc02a7ab0a7e04b9.1341284983@flambe.is-a-geek.org> (raw)
# HG changeset patch
# User Bryan Hundven <bryanhundven@gmail.com>
# Date 1341284878 25200
# Node ID e489fc02a7ab0a7e04b922728bf898dee80d0ee4
# Parent 4c8fd10c18e94975239a69897f38d9eb046fad8c
scripts/showSamples.sh: fix list-samples
If $(pwd)/.config.sample doesn't exist, don't try to source it.
Also, don't forget to quote it, as the parent directories might have
spaces or other weird characters.
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
diff -r 4c8fd10c18e9 -r e489fc02a7ab scripts/showSamples.sh
--- a/scripts/showSamples.sh Mon Jun 18 13:36:29 2012 +0200
+++ b/scripts/showSamples.sh Mon Jul 02 20:07:58 2012 -0700
@@ -37,7 +37,7 @@
fi
;;
esac
- . $(pwd)/.config.sample
+ [ -r "$(pwd)/.config.sample" ] && . "$(pwd)/.config.sample"
if [ -z "${wiki}" ]; then
t_width=14
printf "%-*s [%s" ${width} "${sample}" "${sample_type}"
--
For unsubscribe information see http://sourceware.org/lists.html#faq
next reply other threads:[~2012-07-03 3:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-03 3:22 Bryan Hundven [this message]
2012-07-23 21:40 ` Yann E. MORIN
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=e489fc02a7ab0a7e04b9.1341284983@flambe.is-a-geek.org \
--to=bryanhundven@gmail.com \
--cc=crossgcc@sourceware.org \
--cc=yann.morin.1998@free.fr \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).