Add notices before public release
authorMikael Berthe <mikael@lilotux.net>
Tue, 27 Nov 2012 16:26:04 +0100
changeset 66 d9c00a9fe9d5
parent 65 2cefbe9f3ac6
child 67 5c756a9d7d8c
Add notices before public release
mcabbot.lua
mcbot/cmds/dict.lua
mcbot/cmds/littre.lua
mcbot/cmds/mcabber_bts.lua
mcbot/cmds/rfc.lua
mcbot/cmds/shortenurl.lua
mcbot/cmds/tvcal.lua
mcbot/cmds/wtf.lua
mcbot/cmds/xep.lua
mcbot/libs/shcmd.lua
mcbot/mcbot_engine.lua
mcbot/mcbot_shell.lua
--- a/mcabbot.lua	Sun Nov 25 19:29:32 2012 +0100
+++ b/mcabbot.lua	Tue Nov 27 16:26:04 2012 +0100
@@ -1,3 +1,15 @@
+
+--  McBot / mcabbot project
+--
+-- Copyright (C) 2010-2012 Mikael Berthe <mikael@lilotux.net>
+--
+-- This program 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 2 of the License, or (at
+-- your option) any later version.
+--
+-- Please check the license in the COPYING file at the root of the tree.
+--
 
 local home = os.getenv("HOME")
 package.path = package.path..
--- a/mcbot/cmds/dict.lua	Sun Nov 25 19:29:32 2012 +0100
+++ b/mcbot/cmds/dict.lua	Tue Nov 27 16:26:04 2012 +0100
@@ -1,3 +1,15 @@
+
+--  This module is part of the McBot / mcabbot project
+--
+-- Copyright (C) 2010-2012 Mikael Berthe <mikael@lilotux.net>
+--
+-- This program 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 2 of the License, or (at
+-- your option) any later version.
+--
+-- Please check the license in the COPYING file at the root of the tree.
+--
 
 local dict = { ["desc"] = "Dictionnary" }
 
--- a/mcbot/cmds/littre.lua	Sun Nov 25 19:29:32 2012 +0100
+++ b/mcbot/cmds/littre.lua	Tue Nov 27 16:26:04 2012 +0100
@@ -1,3 +1,15 @@
+
+--  This module is part of the McBot / mcabbot project
+--
+-- Copyright (C) 2010-2012 Mikael Berthe <mikael@lilotux.net>
+--
+-- This program 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 2 of the License, or (at
+-- your option) any later version.
+--
+-- Please check the license in the COPYING file at the root of the tree.
+--
 
 local littre = { ["desc"] = "French Dictionnary Littré" }
 
--- a/mcbot/cmds/mcabber_bts.lua	Sun Nov 25 19:29:32 2012 +0100
+++ b/mcbot/cmds/mcabber_bts.lua	Tue Nov 27 16:26:04 2012 +0100
@@ -1,3 +1,15 @@
+
+--  This module is part of the McBot / mcabbot project
+--
+-- Copyright (C) 2010-2012 Mikael Berthe <mikael@lilotux.net>
+--
+-- This program 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 2 of the License, or (at
+-- your option) any later version.
+--
+-- Please check the license in the COPYING file at the root of the tree.
+--
 
 require "libs.shcmd"
 
--- a/mcbot/cmds/rfc.lua	Sun Nov 25 19:29:32 2012 +0100
+++ b/mcbot/cmds/rfc.lua	Tue Nov 27 16:26:04 2012 +0100
@@ -1,7 +1,17 @@
 #! /usr/bin/env lua
 
--- RFC index parser
--- Mikael BERTHE, 2010-04-17
+--  This module is part of the McBot / mcabbot project
+--  RFC index parser
+--
+-- Copyright (C) 2010-2012 Mikael Berthe <mikael@lilotux.net>
+--
+-- This program 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 2 of the License, or (at
+-- your option) any later version.
+--
+-- Please check the license in the COPYING file at the root of the tree.
+--
 
 -- TXT index database, retrieved from
 -- <ftp://ftp.rfc-editor.org/in-notes/rfc-index.txt>
--- a/mcbot/cmds/shortenurl.lua	Sun Nov 25 19:29:32 2012 +0100
+++ b/mcbot/cmds/shortenurl.lua	Tue Nov 27 16:26:04 2012 +0100
@@ -1,10 +1,18 @@
 
--- This module is derivated from isbear's shortenurl function:
--- http://hg.lilotux.net/mod-mcabber-lua/file/tip/examples/shortenurl.lua
+--  This module is derivated from isbear's shortenurl function:
+--  http://hg.lilotux.net/mod-mcabber-lua/file/tip/examples/shortenurl.lua
+--
+-- Copyright (C) 2012      Myhailo Danylenko <isbear@ukrpost.net>
+-- Copyright (C) 2012      Mikael Berthe <mikael@lilotux.net>
 --
---  * Copyright (C) 2012      Myhailo Danylenko <isbear@ukrpost.net>
---  * Copyright (C) 2012      Mikael Berthe <mikael@lilotux.net>
+-- This program 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 2 of the License, or (at
+-- your option) any later version.
 --
+-- Please check the license in the COPYING file at the root of the tree.
+--
+
 
 require "libs.shcmd"
 
--- a/mcbot/cmds/tvcal.lua	Sun Nov 25 19:29:32 2012 +0100
+++ b/mcbot/cmds/tvcal.lua	Tue Nov 27 16:26:04 2012 +0100
@@ -1,7 +1,17 @@
 #! /usr/bin/env lua
 
--- Data extractor for http://www.pogdesign.co.uk/cat/
--- Mikael BERTHE, 2010-04-18
+--  This module is part of the McBot / mcabbot project
+--  Data extractor for http://www.pogdesign.co.uk/cat/
+--
+-- Copyright (C) 2010-2012 Mikael Berthe <mikael@lilotux.net>
+--
+-- This program 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 2 of the License, or (at
+-- your option) any later version.
+--
+-- Please check the license in the COPYING file at the root of the tree.
+--
 
 require "libs.shcmd"
 
--- a/mcbot/cmds/wtf.lua	Sun Nov 25 19:29:32 2012 +0100
+++ b/mcbot/cmds/wtf.lua	Tue Nov 27 16:26:04 2012 +0100
@@ -1,3 +1,16 @@
+
+--  This module is part of the McBot / mcabbot project
+--  What-The-F... module.
+--
+-- Copyright (C) 2010-2012 Mikael Berthe <mikael@lilotux.net>
+--
+-- This program 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 2 of the License, or (at
+-- your option) any later version.
+--
+-- Please check the license in the COPYING file at the root of the tree.
+--
 
 local wtfdbfile = "/home/mikael/.mcabber/lua/mcbot/wtfdb.txt"
 
--- a/mcbot/cmds/xep.lua	Sun Nov 25 19:29:32 2012 +0100
+++ b/mcbot/cmds/xep.lua	Tue Nov 27 16:26:04 2012 +0100
@@ -1,3 +1,18 @@
+
+--  This module is part of the McBot / mcabbot project
+--  XEP module.
+--
+-- Copyright (C) 2010-2012 Mikael Berthe <mikael@lilotux.net>
+--
+-- This program 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 2 of the License, or (at
+-- your option) any later version.
+--
+-- Please check the license in the COPYING file at the root of the tree.
+--
+-- Some parts were inspired by Matthew Wild (MattJ) code, see below.
+--
 
 require "libs.shcmd"
 
--- a/mcbot/libs/shcmd.lua	Sun Nov 25 19:29:32 2012 +0100
+++ b/mcbot/libs/shcmd.lua	Tue Nov 27 16:26:04 2012 +0100
@@ -1,3 +1,5 @@
+
+-- shcmd(command): execute command in a shell and return stdout contents
 
 function shcmd (cmd)
     if not cmd or cmd == "" then return nil, "No command" end
--- a/mcbot/mcbot_engine.lua	Sun Nov 25 19:29:32 2012 +0100
+++ b/mcbot/mcbot_engine.lua	Tue Nov 27 16:26:04 2012 +0100
@@ -1,5 +1,17 @@
 #! /usr/bin/env lua
 
+--  McBot / mcabbot project
+--
+-- Copyright (C) 2010-2012 Mikael Berthe <mikael@lilotux.net>
+--
+-- This program 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 2 of the License, or (at
+-- your option) any later version.
+--
+-- Please check the license in the COPYING file at the root of the tree.
+--
+
 local commands = {}
 
 function trim(s)
--- a/mcbot/mcbot_shell.lua	Sun Nov 25 19:29:32 2012 +0100
+++ b/mcbot/mcbot_shell.lua	Tue Nov 27 16:26:04 2012 +0100
@@ -1,5 +1,8 @@
 #! /usr/bin/env lua
 
+-- This is a small wrapper to call the mcabbot engine from a shell
+-- (i.e. without mcabber).
+
 require "mcbot_engine"
 
 local function mcbot_mainloop (BotName)