Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Kernel Team (http://www.linux-archive.org/ubuntu-kernel-team/)
-   -   UBUNTU: Do a better job of stripping version information from the perf binary name (http://www.linux-archive.org/ubuntu-kernel-team/359941-ubuntu-do-better-job-stripping-version-information-perf-binary-name.html)

Tim Gardner 04-21-2010 01:24 PM

UBUNTU: Do a better job of stripping version information from the perf binary name
 
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
debian/tools/perf | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/debian/tools/perf b/debian/tools/perf
index 1a9915f..7a3c10b 100644
--- a/debian/tools/perf
+++ b/debian/tools/perf
@@ -1,4 +1,3 @@
#!/bin/bash
-version=`uname -r`
-version=${version%-*}
+version=`uname -r|sed 's/([0-9]*).([0-9]*).([0-9]*)-([0-9]*)-.*$/1.2.3-4/'`
exec "perf_$version" "$@"
--
1.7.0.4


--------------090907090701090803070607
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team

--------------090907090701090803070607--


All times are GMT. The time now is 10:04 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.