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