]>
Commit | Line | Data |
---|---|---|
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 | |
5 | 1) | |
ec8b15cb | 6 | consult all major changes with people on pld-rc-scripts@pld-linux.org |
de1fc6ce JR |
7 | mailing list. This is very important. |
8 | ||
9 | 2) | |
10 | use 'typeset' for local variables in functions for example: | |
11 | ||
12 | function_ble () | |
13 | { | |
14 | typeset qw er | |
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 | 4) | |
28 | consider using typeset -i variable for integer variables | |
29 | ||
30 | 5) don't use sed ! It only causes one more Requires. | |
31 | Use awk ' { gsub(/pattern/,"replaced"); print $0; } ' for that. | |
52c53926 | 32 | Also try to replace grep calls with awk calls. |
de1fc6ce | 33 | |
7f2422b2 | 34 | 6) |
de1fc6ce JR |
35 | (PL) Tlumaczac komunikaty na PL nalezy uzywac formy bezosobowej np: |
36 | ||
37 | uruchamianie uslugi | |
38 | zamiast | |
39 | uruchamiam usluge | |
6f90b667 ER |
40 | |
41 | ||
42 | ||
43 | HOW TO MAKE A RELEASE | |
44 | ||
1d3ff153 | 45 | - svn up |
6f90b667 ER |
46 | - make distcheck |
47 | - update configure.ac release and commit it | |
1d3ff153 | 48 | - ./changelog.sh && svn ci ChangeLog |
6f90b667 ER |
49 | - make dist |
50 | - ./make-tag.sh | |
51 | - upload tarball to distfiles, update rc-scripts.spec:HEAD |