]>
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) | |
944d6d80 | 10 | use 'local' for local variables in functions for example: |
de1fc6ce JR |
11 | |
12 | function_ble () | |
13 | { | |
944d6d80 | 14 | local qw er=0 |
de1fc6ce JR |
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 | ||
fcf7cc19 JR |
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 | ||
944d6d80 | 36 | 4) don't use sed ! It only causes one more Requires. |
de1fc6ce | 37 | Use awk ' { gsub(/pattern/,"replaced"); print $0; } ' for that. |
52c53926 | 38 | Also try to replace grep calls with awk calls. |
de1fc6ce | 39 | |
944d6d80 | 40 | 5) |
de1fc6ce JR |
41 | (PL) Tlumaczac komunikaty na PL nalezy uzywac formy bezosobowej np: |
42 | ||
43 | uruchamianie uslugi | |
44 | zamiast | |
45 | uruchamiam usluge | |
6f90b667 ER |
46 | |
47 | ||
48 | ||
49 | HOW TO MAKE A RELEASE | |
50 | ||
1d3ff153 | 51 | - svn up |
56dc3756 | 52 | - ./autogen.sh |
6f90b667 ER |
53 | - make distcheck |
54 | - update configure.ac release and commit it | |
bfe92d09 | 55 | - svn up && ./changelog.sh && svn ci ChangeLog |
6f90b667 ER |
56 | - make dist |
57 | - ./make-tag.sh | |
58 | - upload tarball to distfiles, update rc-scripts.spec:HEAD |