以下是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 回答

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