X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=DEVELOPMENT;h=b347b76fce66f23afda1bea9ad7346c76070f21a;hb=f60ef786cf271e20da75988326a8c0cf90a7c485;hp=d839d7324f302c5a57010ef41fbb5619a8beb9ac;hpb=ec8b15cb727bad8b8e36fb0fb7676c24b18e3504;p=projects%2Frc-scripts.git diff --git a/DEVELOPMENT b/DEVELOPMENT index d839d732..b347b76f 100644 --- a/DEVELOPMENT +++ b/DEVELOPMENT @@ -1,17 +1,16 @@ READ THIS BEFORE CHANGEING SOMETHING IN RC-SCRIPTS PACKAGE Arkadiusz Miskiewicz - $Id$ 1) consult all major changes with people on pld-rc-scripts@pld-linux.org mailing list. This is very important. 2) - use 'typeset' for local variables in functions for example: + use 'local' for local variables in functions for example: function_ble () { -typeset qw er +local qw er=0 qw=$(tty) er=/dev/console echo "$qw $er" @@ -24,10 +23,16 @@ something=$(whoami) instead of something="`whoami`" -4) - consider using typeset -i variable for integer variables +Warning! The following snippet will not work, use `` in such cases: +There is one ')' too many there. -5) don't use sed ! It only causes one more Requires. +interfaces_boot=$( + case $i in + *ifcfg-lo) continue ;; + esac +) + +4) don't use sed ! It only causes one more Requires. Use awk ' { gsub(/pattern/,"replaced"); print $0; } ' for that. Also try to replace grep calls with awk calls. @@ -37,3 +42,16 @@ something="`whoami`" uruchamianie uslugi zamiast uruchamiam usluge + + + +HOW TO MAKE A RELEASE + +- git checkout master +- git pull --rebase +- ./autogen.sh +- make distcheck +- update configure.ac release and commit it +- make dist +- ./make-tag.sh +- upload tarball to distfiles, update rc-scripts.spec:HEAD