Make testpath automagic via dwfeed's tweak
authorBrian Dolbec <dolsen@gentoo.org>
Wed, 5 Jun 2013 17:39:48 +0000 (10:39 -0700)
committerW. Trevor King <wking@tremily.us>
Sun, 15 Dec 2013 04:25:09 +0000 (20:25 -0800)
Update HOWTO to include the testpath use.

doc/HOWTO.txt
testpath

index 5717f802a8979726357248f79e504a6221297d94..178f7fc9d51441c187f0867aafd657ff93ef9ec3 100644 (file)
@@ -208,9 +208,15 @@ Running catalyst from a Git checkout
 
 If you're developing catalyst, you'll want to test your altered
 version.  An easy way to run it without reinstalling is to setup a
-local configuration file and run:
+local configuration file.  The checkout also includes a testpath file
+which when sourced adds it's bin/ to PATH and it's checkout dir to
+PYTHONPATH.  That terminal will then use the checkout bin/catalyst and
+the checkout's python modules.
 
-    # ./catalyst -c catalyst.conf -f path/to/your.spec
+cd into the checkout directory and run:
+
+    # source ./testpath
+    # catalyst -c catalyst.conf -f path/to/your.spec
 
 The local configuration file can use all the defaults except for
 `sharedir`, which you should change to point to your development
index 9fd7e45ed1d531e1c76ce6f2472df163b554bf11..0eed3000890ed31cf27ec967fae13e42ddcd653d 100644 (file)
--- a/testpath
+++ b/testpath
@@ -13,6 +13,6 @@
 #
 # catalyst -c ./test.conf -p  -f stage1.spec
 
-export PATH="/home/brian/Dev/git/catalyst/bin:${PATH}"
+export PATH="$(dirname $BASH_SOURCE[0])/bin:${PATH}"
 
-export PYTHONPATH="/home/brian/Dev/git/catalyst/:${PYTHONPATH}"
+export PYTHONPATH="$(dirname $BASH_SOURCE[0]):${PYTHONPATH}"