chiark / gitweb /
bootctl: add boot loader and firmware interface tool
[elogind.git] / src / analyze / systemd-analyze.in
index de602be24298aef551a587f5568ef68ca5452164..e964bb3367944dbce3750b0f86b61664b95385d5 100755 (executable)
@@ -1,4 +1,22 @@
-#!/usr/bin/python
+#!@PYTHON_BINARY@
+# -*-python-*-
+
+#  This file is part of systemd.
+#
+#  Copyright 2010-2013 Lennart Poettering
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+#
+#  systemd is distributed in the hope that it will be useful, but
+#  WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+#  Lesser General Public License for more details.
+#
+#  You should have received a copy of the GNU Lesser General Public License
+#  along with systemd; If not, see <http://www.gnu.org/licenses/>.
 
 import sys, os
 import argparse
@@ -282,6 +300,7 @@ def plot():
         surface.finish()
 
 parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter,
+                                 version='systemd-analyze @PACKAGE_VERSION@',
                                  description='Process systemd profiling information',
                                  epilog='''\
 time - print time spent in the kernel before reaching userspace
@@ -303,7 +322,7 @@ else:
         bus = Gio.BusType.SYSTEM
 
 verb = {'time' : time,
-       'blame': blame,
-       'plot' : plot,
-       }
+        'blame': blame,
+        'plot' : plot,
+        }
 verb.get(args.action)()