[libvirt] [test-API 2/3] Add the better copyright statements in scripts

Osier Yang jyang at redhat.com
Tue Apr 17 10:59:24 UTC 2012


The new copyright statements is:

<copyright>
 Copyright (C) 2010-2012 Red Hat, Inc.

 libvirt-test-API 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.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranties of
 TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
</copyright>

% for i in $(git diff --stat HEAD~1 | grep '.py' | awk -F'|' '{print $1}'); do \
    sed -i -e '\|#!/usr/bin/env python|r /tmp/copy' $i; \
  done
---
 activityfilter.py          |   16 ++++++++++++++++
 casecfgcheck.py            |   16 ++++++++++++++++
 dist/redhat/env_inspect.py |   16 ++++++++++++++++
 env_clear.py               |   16 ++++++++++++++++
 exception.py               |   16 ++++++++++++++++
 generator.py               |   16 ++++++++++++++++
 libvirt-test-api.py        |   16 ++++++++++++++++
 logxmlparser.py            |   16 ++++++++++++++++
 mapper.py                  |   16 ++++++++++++++++
 parser.py                  |   16 ++++++++++++++++
 process.py                 |   16 ++++++++++++++++
 proxy.py                   |   16 ++++++++++++++++
 utils/XMLParser.py         |   16 ++++++++++++++++
 utils/check.py             |   16 ++++++++++++++++
 utils/env_parser.py        |   16 ++++++++++++++++
 utils/format.py            |   16 ++++++++++++++++
 utils/log.py               |   16 ++++++++++++++++
 utils/utils.py             |   16 ++++++++++++++++
 utils/xmlbuilder.py        |   16 ++++++++++++++++
 utils/xmlgenerator.py      |   16 ++++++++++++++++
 20 files changed, 320 insertions(+), 0 deletions(-)

diff --git a/activityfilter.py b/activityfilter.py
index 96428f9..e6ad1bf 100644
--- a/activityfilter.py
+++ b/activityfilter.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 
 
diff --git a/casecfgcheck.py b/casecfgcheck.py
index 86f6fc5..344e2a7 100644
--- a/casecfgcheck.py
+++ b/casecfgcheck.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 
 import proxy
diff --git a/dist/redhat/env_inspect.py b/dist/redhat/env_inspect.py
index 21b532a..1277f28 100644
--- a/dist/redhat/env_inspect.py
+++ b/dist/redhat/env_inspect.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 # Filename: envinspect.py
 # Description: check the testing environment and state of libvirt as well
diff --git a/env_clear.py b/env_clear.py
index 65ff732..861bb17 100644
--- a/env_clear.py
+++ b/env_clear.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 # This module matches the reference of clearing function from each testcase
 # to the corresponding testcase's argument in the order of testcase running
diff --git a/exception.py b/exception.py
index 389925d..1b18470 100644
--- a/exception.py
+++ b/exception.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 # Filename: exception.py
 # Summary: the exception class
diff --git a/generator.py b/generator.py
index 9a81b33..623ba65 100644
--- a/generator.py
+++ b/generator.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 # This module to initilize log module and match testcase function from
 # proxy with corresponding argument to form a callable function.
diff --git a/libvirt-test-api.py b/libvirt-test-api.py
index e812808..47787c1 100644
--- a/libvirt-test-api.py
+++ b/libvirt-test-api.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 
 import os
diff --git a/logxmlparser.py b/logxmlparser.py
index a0a5fa9..76e33a8 100644
--- a/logxmlparser.py
+++ b/logxmlparser.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 # Filename: xmlparser.py
 # Summary: generate xmlfile for log management
diff --git a/mapper.py b/mapper.py
index ffbfc7b..b94bd93 100644
--- a/mapper.py
+++ b/mapper.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 # This module help form new lists from original list generated by module parser,
 # the purpose is to get useful information about a testrun.
diff --git a/parser.py b/parser.py
index f4e1e83..05f6a2c 100644
--- a/parser.py
+++ b/parser.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 # This module is for configuration file parsing, to generate a case list.
 #
diff --git a/process.py b/process.py
index e2d2bb8..767e534 100644
--- a/process.py
+++ b/process.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 # Filename: process.py
 # Summary: multiprocessing module
diff --git a/proxy.py b/proxy.py
index 799069f..52a0afc 100644
--- a/proxy.py
+++ b/proxy.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 # Generate a list of callable function references.
 
diff --git a/utils/XMLParser.py b/utils/XMLParser.py
index d19cfd9..f24134a 100644
--- a/utils/XMLParser.py
+++ b/utils/XMLParser.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 # Filename: XMLParser.py
 # Summary: parse and xml document into a python dictionary
diff --git a/utils/check.py b/utils/check.py
index 01e0ed8..9577c76 100644
--- a/utils/check.py
+++ b/utils/check.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 # Filename: check.py
 # Summary: basic check operation needed by test
diff --git a/utils/env_parser.py b/utils/env_parser.py
index 13d80c1..049115e 100644
--- a/utils/env_parser.py
+++ b/utils/env_parser.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 # Filename: env_parser.py
 # Summary: parse the env configuration file
diff --git a/utils/format.py b/utils/format.py
index 3a0d54b..f0e2e5f 100644
--- a/utils/format.py
+++ b/utils/format.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 # Filename: format.py
 # Summary: generate specified kind of format string
diff --git a/utils/log.py b/utils/log.py
index 50f38c2..618900d 100644
--- a/utils/log.py
+++ b/utils/log.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 # Filename: log.py
 # Summary: log file operation
diff --git a/utils/utils.py b/utils/utils.py
index 07a87cf..66458ad 100644
--- a/utils/utils.py
+++ b/utils/utils.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 
 import os
diff --git a/utils/xmlbuilder.py b/utils/xmlbuilder.py
index 5a4101c..92bfdc3 100644
--- a/utils/xmlbuilder.py
+++ b/utils/xmlbuilder.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 # Filename: xmlbuilder.py
 # Summary: operation for building domain xml
diff --git a/utils/xmlgenerator.py b/utils/xmlgenerator.py
index 79c802a..5287bea 100644
--- a/utils/xmlgenerator.py
+++ b/utils/xmlgenerator.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API 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.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 #
 # Filename: xmlgenerator.py
 # Summary: generate domain xml
-- 
1.7.7.3




More information about the libvir-list mailing list