以下是licence文件内容Copyright (c) 2008 Alan Szlosek
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
2 回答
饮歌长啸
TA贡献1951条经验 获得超3个赞
在源代码根目录放置LICENCE.TXT文件
你去看所有的开源代码,许可证文件都会放到这个地方,而所有想找这个文件的用户,第一反应也是去这里找这个文件。而且文件名一般都是一个名为LICENCE.TXT
的单一文件。
在代码文件注释中声明开源许可
这也是一个好习惯,我们在看国外的代码时,它们的头部一般会有一大段的版权声明,有的时候其长度甚至超过了代码本身,这经常遭到国人的调侃。其实这样做是非常必要的,特别是如果你的代码包括多种风格的开源许可证,那么这样可以为不同的模块分配相应的版权许可。比如一般php代码开头
<?php/** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @package Zend_Mvc */
- 2 回答
- 0 关注
- 131 浏览
添加回答
举报
0/150
提交
取消