summaryrefslogtreecommitdiff
path: root/src/analyze
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-12-22 10:09:23 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-01-04 22:20:35 -0500
commit2f4da3e6c298bc0ae6243cae47aedb01c50fa870 (patch)
treea83c692516fdafd779efd64e743b6cb273eb7da1 /src/analyze
parentbbed6c0d4b54d9c4e510415770e091d79eee2e8e (diff)
systemd-analyze: use specified binary, add --version
Python binary used in the she-bang line in installed scripts can be set with ./configure PYTHON_BINARY=... Defaults to the same path as python used during compilation. Adding --version makes systemd-analyze behave consistently with the rest of installed programs. The lines in ./configure output are reordered to keep all yes/no lines separate. I think that this makes the output clearer.
Diffstat (limited to 'src/analyze')
-rwxr-xr-xsrc/analyze/systemd-analyze.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/analyze/systemd-analyze.in b/src/analyze/systemd-analyze.in
index de602be24..26a9f7b57 100755
--- a/src/analyze/systemd-analyze.in
+++ b/src/analyze/systemd-analyze.in
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!@PYTHON_BINARY@
import sys, os
import argparse
@@ -282,6 +282,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