summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJF Ding <jian-feng.ding@intel.com>2011-08-15 18:49:17 +0800
committerJF Ding <jian-feng.ding@intel.com>2011-08-15 18:49:17 +0800
commita2fa4c2009c0028542b305db773f7076b6eb73d0 (patch)
tree70eefa238f52d044ce81e19349fd454aa63d0dfc /tools
parent41d70ca457d59751c2d8873f5dfa0bd20ee6b4e0 (diff)
downloadmic-a2fa4c2009c0028542b305db773f7076b6eb73d0.tar.gz
mic-a2fa4c2009c0028542b305db773f7076b6eb73d0.tar.bz2
mic-a2fa4c2009c0028542b305db773f7076b6eb73d0.zip
add version output for tools
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mic33
1 files changed, 25 insertions, 8 deletions
diff --git a/tools/mic b/tools/mic
index 8b54f45..06ea75a 100755
--- a/tools/mic
+++ b/tools/mic
@@ -1,8 +1,26 @@
-#!/usr/bin/python -t
-
-import os
-import sys
+#!/usr/bin/python -tt
+#
+# Copyright 2008, 2009, 2010 Intel, Inc.
+#
+# This copyrighted material is made available to anyone wishing to use, modify,
+# copy, or redistribute it subject to the terms and conditions of the GNU
+# General Public License v.2. This program is distributed in the hope that it
+# will be useful, but WITHOUT ANY WARRANTY expressed or implied, including the
+# implied warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the GNU General Public License for more details.
+#
+# 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., 51
+# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Any Red Hat
+# trademarks that are incorporated in the source code or documentation are not
+# subject to the GNU General Public License and may only be used or replicated
+# with the express permission of Red Hat, Inc.
+#
+
+import os, sys
import logging
+
+from mic.__version__ import VERSION
import mic.utils.cmdln as cmdln
import mic.utils.misc as misc
import mic.utils.errors as errors
@@ -11,18 +29,17 @@ import mic.pluginmgr as pluginmgr
import mic.creator as creator
class Mic(cmdln.Cmdln):
- """Usage: mic SUBCOMMAND [OPTS] [ARGS...]
+ """ Usage: mic SUBCOMMAND [OPTS] [ARGS...]
MeeGo Image Creator Tool.
${command_list}
${help_list}
global ${option_list}
- For additional information, see
- * http://www.meego.com/
"""
+
name = 'mic'
- version = None
+ version = VERSION
@cmdln.alias("cr")
def do_create(self, argv):