Salut

Le 14/11/06, Richard Gill<[EMAIL PROTECTED]> a écrit :
La fonction ne devant pas forcément contenir quelquechose, je serais
plus pour qu'une action *par défaut* soit placée si le contenu est
vide, comme un simple ':' ou 'true' ou 'false' (suivant ce qu'on veut
- je n'ai pas du tout suivi ni testé Ncooker, je ne sais donc pas ce
qu'il devrait faire dans ce cas là).

après avoir essayé par moi-même, je vois mieux :-)

Je pense que vu que c'est Ncooker qui génère les fonctions à partir
des templates, il serait bon qu'il génère quelque chose de bon,
commentaires ou pas.

On peut par exemple remplir les fonctions vides comme ceci:

do_unpack () {

   # remove the next line to add something in this function
   :
}

...

do_preconfig () {

   # remove the next line to add something in this function
   :
}

do_postconfig () {

   # remove the next line to add something in this function
   :
}

do_premake () {

   # remove the next line to add something in this function
   :
}

do_postmake () {

   # remove the next line to add something in this function
   :
}

do_preinstall () {

   # remove the next line to add something in this function
   :
}

do_prepackage () {

   # remove the next line to add something in this function
   :
}



--
Richard 'riri' GILL
jabber: [EMAIL PROTECTED]
http://riri.houbathecat.info
http://www.gnurou.org/Writing/SmartQuestionsFr

_______________________________________________
Nasgaia-dev mailing list
[email protected]
https://mail.gna.org/listinfo/nasgaia-dev

Répondre à