old_contents: #!/usr/bin/python3
  
  from __future__ import print_function
  import sys
  import os
  import re
  
  # FIXME: this information should come from the script itself...
  __programname__ = "SUSE Documentation Style Checker"
  __version__ = "2014-02.2.rc1"
  __author__ = "Stefan Knorr, Thomas Schraitle"
  __license__ = "MIT"
  __description__ = "checks a given DocBook XML file for stylistic errors"
  
  try:
      from distutils.core import setup
  except ImportError:
      print("No distutils module found.", file = sys.stderr)
      sys.exit(10)
  
  
  def listdir(path, ignore=None):
      """Lists all files recursively, starting from a given directory
      """
      result = []
      for root, sub, files in os.walk(path):
          for f in files:
              result.append(os.path.join(root, f))
      if ignore is not None:
          delete=[]
          for i in result:
             for j in ignore:
                if re.search(j, i) and (i not in delete):
                    delete.append(i)
          result=set(result) - set(delete)
      return result
  
  
  setup(name = 'suse-doc-style-checker',
        version = __version__,
        description = __description__,
        long_description = "suse-doc-style-checker ",
        author = __author__,
        author_email = 'sknorr@suse.de',
        url = 'https://www.gitorious.org/style-checker/style-checker',
        download_url = 'https://www.gitorious.org/style-checker/style-checker',
        license = __license__,
        data_files =  [('.',                  ['LICENSE', ]),
                      # Ignore any XML files under source because sknorr keeps temporary files there
                      ('source/',            listdir('source', ignore=['xsl-checks', '.+\.xml'] )),
                      ('source/xsl-checks',  listdir('source/xsl-checks') ),
                      ('validation',         listdir('validation') ),
                      ('bookmarklet/',       listdir('bookmarklet')),
                      ('man/',               listdir('man')),
                      ],
        )
  
  # EOF
  
new_contents: #!/usr/bin/python3
  
  from __future__ import print_function
  import sys
  import os
  import re
  
  # FIXME: this information should come from the script itself...
  __programname__ = "SUSE Documentation Style Checker"
  __version__ = "2014-02.2.rc2"
  __author__ = "Stefan Knorr, Thomas Schraitle"
  __license__ = "MIT"
  __description__ = "checks a given DocBook XML file for stylistic errors"
  
  try:
      from distutils.core import setup
  except ImportError:
      print("No distutils module found.", file = sys.stderr)
      sys.exit(10)
  
  
  def listdir(path, ignore=None):
      """Lists all files recursively, starting from a given directory
      """
      result = []
      for root, sub, files in os.walk(path):
          for f in files:
              result.append(os.path.join(root, f))
      if ignore is not None:
          delete=[]
          for i in result:
             for j in ignore:
                if re.search(j, i) and (i not in delete):
                    delete.append(i)
          result=set(result) - set(delete)
      return result
  
  
  setup(name = 'suse-doc-style-checker',
        version = __version__,
        description = __description__,
        long_description = "suse-doc-style-checker ",
        author = __author__,
        author_email = 'sknorr@suse.de',
        url = 'https://www.gitorious.org/style-checker/style-checker',
        download_url = 'https://www.gitorious.org/style-checker/style-checker',
        license = __license__,
        data_files =  [('.',                  ['LICENSE', ]),
                      # Ignore any XML files under source because sknorr keeps temporary files there
                      ('source/',            listdir('source', ignore=['xsl-checks', '.+\.xml'] )),
                      ('source/xsl-checks',  listdir('source/xsl-checks') ),
                      ('validation',         listdir('validation') ),
                      ('bookmarklet/',       listdir('bookmarklet')),
                      ('man/',               listdir('man')),
                      ],
        )
  
  # EOF
  
subject: Bump version to RC2