1 |
commit: 9d1a35efed78b7eca5ae25003fb53be2ee5e39f8 |
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: Sun Mar 2 22:54:04 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=9d1a35ef |
7 |
|
8 |
Commit a testpath file to source with instructions on it's use. |
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 | 19 +++++++++++++++++++ |
16 |
2 files changed, 27 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/doc/HOWTO.txt b/doc/HOWTO.txt |
19 |
index 8fe63c1..cec22c3 100644 |
20 |
--- a/doc/HOWTO.txt |
21 |
+++ b/doc/HOWTO.txt |
22 |
@@ -233,9 +233,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..8394ff6 |
44 |
--- /dev/null |
45 |
+++ b/testpath |
46 |
@@ -0,0 +1,19 @@ |
47 |
+ |
48 |
+# When sourced from the same directory as the checkout these 2 paths direct |
49 |
+# commands use your git checkout in the terminal window you wish to run |
50 |
+# the git code in... |
51 |
+# cd ~/catalyst |
52 |
+# source ./testpath |
53 |
+# edit a config file "test.conf" with similar path changes for it to find |
54 |
+# and use/run the git checkout code and to store it's data to a test directory |
55 |
+# it can then be run on a system without being installed or replacing an existing |
56 |
+# catalyst install which may be used for production. |
57 |
+# |
58 |
+# then run catalyst from there |
59 |
+# eg: |
60 |
+# |
61 |
+# catalyst -c ./test.conf -p -f stage1.spec |
62 |
+ |
63 |
+export PATH="$(dirname $BASH_SOURCE[0])/bin:${PATH}" |
64 |
+ |
65 |
+export PYTHONPATH="$(dirname $BASH_SOURCE[0]):${PYTHONPATH}" |