Choisir une licence et l'appliquer
Brought to you by:
mdahmen
Il faut choisir sous quelle licence tu développes ton code et mettre partout dans chaque fichier le pavé qui dit que tu l'utilises plus le fichier LICENCE.TXT.
Je te conseille de lire http://www.gnu.org/licenses/gpl-howto.fr.html
Je ne sais pas où je dois définir la licence. Il faut que je modifie tous les fichiers sources et mettre en-tête le nom du développeur et la licence (GNU GPL). J'ai un fichier LICENSE dans le Subversion qui reprend le texte de la GNU General Public License.
Il faut mettre en en-tête de tous les fichiers java, xml, etc...:
/*
* Copyright (C) 2010 Manu Dahmen
*
* This file is part of steemploiapp.
*
* Steemploiapp is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Steemploiapp is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with Foobar. If not, see <http://www.gnu.org/licenses/>.
*/
En bash un find qui ajoute la licence à tous les fichier java.
Attention j'utilise un chemin complet vers /home/corne/tmp/lic qui est un fichier dans lequel je mets le texte de la licence.
find . -name *.java | sed -e "s/\(.*\)/cat \/home\/corne\/tmp\/lic \1 > \1.tmp \&\& mv \1.tmp \1/" | sh