Gentoo Archives: gentoo-commits

From: Brian Dolbec <brian.dolbec@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/catalyst:rewrite-on-master commit in: /, doc/
Date: Fri, 22 Nov 2013 07:13:46
Message-Id: 1385100154.477cff3cb0fc6fb11f889b63c2dd7eb45c7b5e07.dol-sen@gentoo
1 commit: 477cff3cb0fc6fb11f889b63c2dd7eb45c7b5e07
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 5 17:39:48 2013 +0000
4 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
5 CommitDate: Fri Nov 22 06:02:34 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=477cff3c
7
8 Make testpath automagic via dwfeed's tweak
9
10 Update HOWTO to include the testpath use.
11
12 ---
13 doc/HOWTO.txt | 10 ++++++++--
14 testpath | 4 ++--
15 2 files changed, 10 insertions(+), 4 deletions(-)
16
17 diff --git a/doc/HOWTO.txt b/doc/HOWTO.txt
18 index 5717f80..178f7fc 100644
19 --- a/doc/HOWTO.txt
20 +++ b/doc/HOWTO.txt
21 @@ -208,9 +208,15 @@ Running catalyst from a Git checkout
22
23 If you're developing catalyst, you'll want to test your altered
24 version. An easy way to run it without reinstalling is to setup a
25 -local configuration file and run:
26 +local configuration file. The checkout also includes a testpath file
27 +which when sourced adds it's bin/ to PATH and it's checkout dir to
28 +PYTHONPATH. That terminal will then use the checkout bin/catalyst and
29 +the checkout's python modules.
30
31 - # ./catalyst -c catalyst.conf -f path/to/your.spec
32 +cd into the checkout directory and run:
33 +
34 + # source ./testpath
35 + # catalyst -c catalyst.conf -f path/to/your.spec
36
37 The local configuration file can use all the defaults except for
38 `sharedir`, which you should change to point to your development
39
40 diff --git a/testpath b/testpath
41 index 9fd7e45..0eed300 100644
42 --- a/testpath
43 +++ b/testpath
44 @@ -13,6 +13,6 @@
45 #
46 # catalyst -c ./test.conf -p -f stage1.spec
47
48 -export PATH="/home/brian/Dev/git/catalyst/bin:${PATH}"
49 +export PATH="$(dirname $BASH_SOURCE[0])/bin:${PATH}"
50
51 -export PYTHONPATH="/home/brian/Dev/git/catalyst/:${PYTHONPATH}"
52 +export PYTHONPATH="$(dirname $BASH_SOURCE[0]):${PYTHONPATH}"