X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fanalyze%2Fsystemd-analyze.in;h=e964bb3367944dbce3750b0f86b61664b95385d5;hb=7b4d7cc08283e5485dcfa49ffdf1915de1d5e81b;hp=de602be24298aef551a587f5568ef68ca5452164;hpb=bbed6c0d4b54d9c4e510415770e091d79eee2e8e;p=elogind.git diff --git a/src/analyze/systemd-analyze.in b/src/analyze/systemd-analyze.in index de602be24..e964bb336 100755 --- a/src/analyze/systemd-analyze.in +++ b/src/analyze/systemd-analyze.in @@ -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 . 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)()