]> git.pld-linux.org Git - projects/rc-scripts.git/blame - DEVELOPMENT
Clean and recreate systemd tmpfiles (even if not using systemd).
[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>
de1fc6ce
JR
3
41)
7e7d5209 5 consult all major changes with people on pld-devel-en@lists.pld-linux.org
de1fc6ce
JR
6mailing list. This is very important.
7
82)
944d6d80 9 use 'local' for local variables in functions for example:
de1fc6ce
JR
10
11function_ble ()
12{
944d6d80 13local qw er=0
de1fc6ce
JR
14qw=$(tty)
15er=/dev/console
16echo "$qw $er"
17}
18
193)
20 use $() instead `` for command execution for example
21
22something=$(whoami)
23instead of
24something="`whoami`"
25
fcf7cc19
JR
26Warning! The following snippet will not work, use `` in such cases:
27There is one ')' too many there.
28
29interfaces_boot=$(
30 case $i in
31 *ifcfg-lo) continue ;;
32 esac
33)
34
944d6d80 354) don't use sed ! It only causes one more Requires.
de1fc6ce 36 Use awk ' { gsub(/pattern/,"replaced"); print $0; } ' for that.
52c53926 37 Also try to replace grep calls with awk calls.
de1fc6ce 38
944d6d80 395)
de1fc6ce
JR
40 (PL) Tlumaczac komunikaty na PL nalezy uzywac formy bezosobowej np:
41
42uruchamianie uslugi
43zamiast
44uruchamiam usluge
6f90b667
ER
45
46
47
48HOW TO MAKE A RELEASE
49
a0668280
ER
50- git checkout master
51- git pull --rebase
56dc3756 52- ./autogen.sh
6f90b667
ER
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
This page took 1.034441 seconds and 4 git commands to generate.