| 1 |
README.hacking -- notes for contributors |
| 2 |
---------------------------------------- |
| 3 |
|
| 4 |
CODING STYLE |
| 5 |
|
| 6 |
Not all old code has been cleaned up, but going forward, please follow these |
| 7 |
conventions: |
| 8 |
|
| 9 |
* 2-space indentation with spaces, not tabs |
| 10 |
|
| 11 |
DEPENDENCIES DURING DEVELOPMENT (AKA USING MYLIB) |
| 12 |
|
| 13 |
It can be annoying to manage dependencies during development when testing |
| 14 |
metabase distributions as they often depend on other metabase distributions |
| 15 |
also under development. |
| 16 |
|
| 17 |
There are a few options |
| 18 |
(1) set PERL5LIB to include all metabase project files |
| 19 |
(2) continually install all metabase project files while developing |
| 20 |
(3) use "-Mylib" and the .mylib file |
| 21 |
|
| 22 |
For (3), install the "ylib" module from CPAN. Then, when you invoke "perl |
| 23 |
-Mylib", all directories listed in the .mylib file will be added to @INC. For |
| 24 |
Makefile.PL, you'll need to make sure that -Mylib is used by perl as invoked |
| 25 |
in the Makefile: |
| 26 |
|
| 27 |
$ perl -Mylib Makefile.PL PERL="`which perl` -Mylib" |
| 28 |
|
| 29 |
|