diff options
author | Michal Marek <mmarek@suse.cz> | 2011-05-30 14:12:09 +0200 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2011-06-09 23:05:54 +0200 |
commit | 5d61b9fd19d9f3cf653dbba615876e7792eea5ea (patch) | |
tree | 8feaee398ec0bf43f94c759562e4d10f1c5eeebb /tools | |
parent | bfe5424a8b31624e7a476f959d552999f931e7c7 (diff) | |
download | lwn-5d61b9fd19d9f3cf653dbba615876e7792eea5ea.tar.gz lwn-5d61b9fd19d9f3cf653dbba615876e7792eea5ea.zip |
perf: Use make kernelversion instead of parsing the Makefile
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/perf/util/PERF-VERSION-GEN | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/perf/util/PERF-VERSION-GEN b/tools/perf/util/PERF-VERSION-GEN index 26d4d3fd6deb..9c5fb4d93824 100755 --- a/tools/perf/util/PERF-VERSION-GEN +++ b/tools/perf/util/PERF-VERSION-GEN @@ -23,12 +23,7 @@ if test -d ../../.git -o -f ../../.git && then VN=$(echo "$VN" | sed -e 's/-/./g'); else - eval $(grep '^VERSION[[:space:]]*=' ../../Makefile|tr -d ' ') - eval $(grep '^PATCHLEVEL[[:space:]]*=' ../../Makefile|tr -d ' ') - eval $(grep '^SUBLEVEL[[:space:]]*=' ../../Makefile|tr -d ' ') - eval $(grep '^EXTRAVERSION[[:space:]]*=' ../../Makefile|tr -d ' ') - - VN="${VERSION}.${PATCHLEVEL}.${SUBLEVEL}${EXTRAVERSION}" + VN=$(make -sC ../.. kernelversion) fi VN=$(expr "$VN" : v*'\(.*\)') |