Warning, /FWCore/Skeletons/scripts/mkskel is written in an unsupported language. File is not indexed.
0001 #!/usr/bin/env python3
0002 #-*- coding: utf-8 -*-
0003 #pylint: disable-msg=
0004 """
0005 File : mkskel
0006 Author : Valentin Kuznetsov <vkuznet@gmail.com>
0007 Description: mkskel code
0008 """
0009
0010 # system modules
0011 import sys
0012
0013 if sys.version_info < (2, 6):
0014 raise Exception("This script requires python 2.6 or greater")
0015
0016 # package modules
0017 from FWCore.Skeletons.cms import generate, config
0018
0019 def pkg_help():
0020 "mkskel help function"
0021 msg = '\nmkskel script generates CMS C++ Skeleton code'
0022 msg += '\nUsage : mkskel MySkeleton -author "FirstName LastName"'
0023 msg += '\nOutput : '
0024 msg += """
0025 MySkeleton.cc
0026 MySkeleton.h"""
0027 msg += '\nExample:'
0028 msg += '\n # create new C++ Skeleton'
0029 msg += '\n mkskel MySkeleton'
0030 msg += '\n # create new C++ Skeleton with given author'
0031 msg += '\n mkskel MySkeleton -author "First Last"'
0032 msg += '\n'
0033 return msg
0034
0035 if __name__ == '__main__':
0036 generate(config('Skeleton', pkg_help()))