FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 04-21-2010, 01:24 PM
Tim Gardner
 
Default 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--
 

Thread Tools




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

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org