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