]> TLD Linux GIT Repositories - rc-scripts.git/blob - DEVELOPMENT
- disable lock checks (happens on LUKS2 and fails during system boot)
[rc-scripts.git] / DEVELOPMENT
1            READ THIS BEFORE CHANGEING SOMETHING IN RC-SCRIPTS PACKAGE
2                     Arkadiusz Miskiewicz <misiek@pld-linux.org>
3
4 1)
5         consult all major changes with people on pld-devel-en@lists.pld-linux.org
6 mailing list. This is very important.
7
8 2)
9         use 'local' for local variables in functions for example:
10
11 function_ble ()
12 {
13 local qw er=0
14 qw=$(tty)
15 er=/dev/console
16 echo "$qw $er"
17 }
18
19 3)
20         use $() instead `` for command execution for example
21
22 something=$(whoami)
23 instead of
24 something="`whoami`"
25
26 Warning! The following snippet will not work, use `` in such cases:
27 There is one ')' too many there.
28
29 interfaces_boot=$(
30         case $i in
31                 *ifcfg-lo) continue ;;
32         esac
33 )
34
35 4)      don't use sed ! It only causes one more Requires.
36         Use awk ' { gsub(/pattern/,"replaced"); print $0; } ' for that.
37         Also try to replace grep calls with awk calls.
38         
39 5)
40         (PL) Tlumaczac komunikaty na PL nalezy uzywac formy bezosobowej np:
41
42 uruchamianie uslugi
43 zamiast
44 uruchamiam usluge
45
46
47
48 HOW TO MAKE A RELEASE
49
50 - git checkout master
51 - git pull --rebase
52 - ./autogen.sh
53 - make distcheck
54 - update configure.ac release and commit it
55 - make dist
56 - ./make-tag.sh
57 - upload tarball to distfiles, update rc-scripts.spec:HEAD