From: "W. Trevor King" <wking@tremily.us>
To: gentoo-catalyst@lists.gentoo.org
Subject: [gentoo-catalyst] Re: [PATCH] Commit a testpath file to source with instructions on it's use.
Date: Tue, 4 Mar 2014 20:02:44 -0800 [thread overview]
Message-ID: <20140305040244.GA25297@odin.tremily.us> (raw)
In-Reply-To: <1393801623-13968-1-git-send-email-dolsen@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 1640 bytes --]
On Sun, Mar 02, 2014 at 03:07:03PM -0800, Brian Dolbec wrote:
> Make testpath automagic via dwfeed's tweak
> Update HOWTO on how to run the git checkout code directly without
> being installed.
I think this patch is a bit excessive, since I don't expect people to
be running catalyst before they could understand something like:
To run from the live checkout, use:
PYTHONPATH=. ./bin/catalyst -c catalyst.conf -f path/to/your.spec
But if folks want a script to set that up for them, I won't complain
;).
> + # source ./testpath
> + # catalyst -c catalyst.conf -f path/to/your.spec
You use the versioned catalyst.conf file here, but…
> +# catalyst -c ./test.conf -p -f stage1.spec
… suggest 'test.conf' here. I think you should use catalyst.conf for
both, and leave it up to users to realize that they can have multiple,
non-overlapping configurations.
Also, there are two spaces after the '-p' ;).
> +export PATH="$(dirname $BASH_SOURCE[0])/bin:${PATH}"
> +
> +export PYTHONPATH="$(dirname $BASH_SOURCE[0]):${PYTHONPATH}"
I think you need braces around BASH_SOURCE[0]:
$ cat test.sh
echo "'${0}'"
echo "'${BASH_SOURCE[0]}'"
echo "'$BASH_SOURCE[0]'"
$ source test.sh
'bash'
'test.sh'
'test.sh[0]'
For extra elegance (to avoid a trailing colon if PYTHONPATH was
originally null or unset):
export PYTHONPATH="$(dirname ${BASH_SOURCE[0]})${PYTHONPATH:+:}${PYTHONPATH}"
Cheers,
Trevor
--
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2014-03-05 4:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-02 23:07 [gentoo-catalyst] [PATCH] Commit a testpath file to source with instructions on it's use Brian Dolbec
2014-03-05 4:02 ` W. Trevor King [this message]
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=20140305040244.GA25297@odin.tremily.us \
--to=wking@tremily.us \
--cc=gentoo-catalyst@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox