Gentoo Archives: gentoo-commits

From: Brian Dolbec <brian.dolbec@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/catalyst:pending commit in: /, doc/
Date: Tue, 31 Dec 2013 04:48:06
Message-Id: 1388464815.00fe442bae3b9fafb63823146d3c4cff110501c3.dol-sen@gentoo
1 commit: 00fe442bae3b9fafb63823146d3c4cff110501c3
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 25 04:26:38 2013 +0000
4 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
5 CommitDate: Tue Dec 31 04:40:15 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=00fe442b
7
8 Commit my testpath file with instructions
9
10 Make testpath automagic via dwfeed's tweak
11 Update HOWTO on how to run the git checkout code directly without being installed.
12
13 ---
14 doc/HOWTO.txt | 10 ++++++++--
15 testpath | 18 ++++++++++++++++++
16 2 files changed, 26 insertions(+), 2 deletions(-)
17
18 diff --git a/doc/HOWTO.txt b/doc/HOWTO.txt
19 index 5717f80..178f7fc 100644
20 --- a/doc/HOWTO.txt
21 +++ b/doc/HOWTO.txt
22 @@ -208,9 +208,15 @@ Running catalyst from a Git checkout
23
24 If you're developing catalyst, you'll want to test your altered
25 version. An easy way to run it without reinstalling is to setup a
26 -local configuration file and run:
27 +local configuration file. The checkout also includes a testpath file
28 +which when sourced adds it's bin/ to PATH and it's checkout dir to
29 +PYTHONPATH. That terminal will then use the checkout bin/catalyst and
30 +the checkout's python modules.
31
32 - # ./catalyst -c catalyst.conf -f path/to/your.spec
33 +cd into the checkout directory and run:
34 +
35 + # source ./testpath
36 + # catalyst -c catalyst.conf -f path/to/your.spec
37
38 The local configuration file can use all the defaults except for
39 `sharedir`, which you should change to point to your development
40
41 diff --git a/testpath b/testpath
42 new file mode 100644
43 index 0000000..0eed300
44 --- /dev/null
45 +++ b/testpath
46 @@ -0,0 +1,18 @@
47 +
48 +# edit the following 2 paths to point to your caatalyst git checkout
49 +# then in a terminal window you wish to run the git code in...
50 +# cd ~/catalyst
51 +# source ./testpath
52 +# edit a config file "test.conf" with similar path changes for it to find
53 +# and use/run the git checkout code and to store it's data to a test directory
54 +# it can then be run on a system without being installed or replacing an existing
55 +# catalyst install which may be used for production.
56 +#
57 +# then run catalyst from there
58 +# eg:
59 +#
60 +# catalyst -c ./test.conf -p -f stage1.spec
61 +
62 +export PATH="$(dirname $BASH_SOURCE[0])/bin:${PATH}"
63 +
64 +export PYTHONPATH="$(dirname $BASH_SOURCE[0]):${PYTHONPATH}"