diff options
author | John Rigby <john.rigby@linaro.org> | 2010-09-03 00:03:56 -0600 |
---|---|---|
committer | John Fredriksson <john.xj.fredriksson@stericsson.com> | 2011-10-19 15:16:44 +0200 |
commit | 416cf007581a06a08e7b4c2f9100fbc2437b48d8 (patch) | |
tree | 3ba3970c9f2500a47ee899d9385ca6711b1fe46a /debian/tools/perf | |
parent | 4bfaf5b8b51ceb9168dd9014fd9fbae0b97b7eeb (diff) |
LINARO: Add generic linaro packaging
Signed-off-by: John Rigby <john.rigby@linaro.org>
Diffstat (limited to 'debian/tools/perf')
-rw-r--r-- | debian/tools/perf | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/tools/perf b/debian/tools/perf new file mode 100644 index 00000000000..ab35fab9f0f --- /dev/null +++ b/debian/tools/perf @@ -0,0 +1,16 @@ +#!/bin/bash +full_version=`uname -r` + +# Removing flavour from version i.e. generic or server. +flavour_abi=${full_version#*-} +flavour=${flavour_abi#*-} +version=${full_version%-$flavour} +perf="perf_$version" + +if ! which "$perf" > /dev/null; then + echo "$perf not found" >&2 + echo "You may need to install linux-tools-$version" >&2 + exit 2 +fi + +exec "$perf" "$@" |