以下是licence文件內(nèi)容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 回答

飲歌長(zhǎng)嘯
TA貢獻(xiàn)1951條經(jīng)驗(yàn) 獲得超3個(gè)贊
在源代碼根目錄放置LICENCE.TXT文件
你去看所有的開源代碼,許可證文件都會(huì)放到這個(gè)地方,而所有想找這個(gè)文件的用戶,第一反應(yīng)也是去這里找這個(gè)文件。而且文件名一般都是一個(gè)名為LICENCE.TXT
的單一文件。
在代碼文件注釋中聲明開源許可
這也是一個(gè)好習(xí)慣,我們?cè)诳磭?guó)外的代碼時(shí),它們的頭部一般會(huì)有一大段的版權(quán)聲明,有的時(shí)候其長(zhǎng)度甚至超過了代碼本身,這經(jīng)常遭到國(guó)人的調(diào)侃。其實(shí)這樣做是非常必要的,特別是如果你的代碼包括多種風(fēng)格的開源許可證,那么這樣可以為不同的模塊分配相應(yīng)的版權(quán)許可。比如一般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 關(guān)注
- 180 瀏覽
添加回答
舉報(bào)
0/150
提交
取消