summaryrefslogtreecommitdiff
path: root/src/lib/HACKING.md
blob: 8bebaf67223ff0a2c6944e5eb3866bbabcaa3ccd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Special stuff about hacking ih the /src/lib directory:

 - Everything should be GPLv2 AND GPLv3 compatible.  No GPLv3 only.
 - Name a file `libre${NAME}` if it should be executable directly, or
   `${name}.sh` if it should only be available to be sourced.
 - When printing a message that is internal to /src/lib, and not part
   of the programm calling the library; prefix the print command with
   `_l`.  `_l()` is defined in `common.sh` (and `librelib`, since it
   cannot use any libraries itself).
 - When changing the message functions, be aware that some are
   duplicated in:
    * /src/chroot-tools/chcleanup
    * /src/chroot-tools/distcc-tool
    * /src/lib/librelib
   And that they probably need to be updated as well.