From 2f4da3e6c298bc0ae6243cae47aedb01c50fa870 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sat, 22 Dec 2012 10:09:23 +0100 Subject: 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. --- src/analyze/systemd-analyze.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/analyze/systemd-analyze.in b/src/analyze/systemd-analyze.in index de602be242..26a9f7b57f 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 -- cgit v1.2.3-54-g00ecf