projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfe5424
)
perf: Use make kernelversion instead of parsing the Makefile
author
Michal Marek
<
[email protected]
>
Mon, 30 May 2011 12:12:09 +0000
(14:12 +0200)
committer
Michal Marek
<
[email protected]
>
Thu, 9 Jun 2011 21:05:54 +0000
(23:05 +0200)
Cc: Peter Zijlstra <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Arnaldo Carvalho de Melo <
[email protected]
>
Signed-off-by: Michal Marek <
[email protected]
>
tools/perf/util/PERF-VERSION-GEN
patch
|
blob
|
history
diff --git
a/tools/perf/util/PERF-VERSION-GEN
b/tools/perf/util/PERF-VERSION-GEN
index 26d4d3fd6deb2e1285ca44c9a710e7cadffd374d..9c5fb4d93824e406d534631a39ca96ea48e415a0 100755
(executable)
--- 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*'\(.*\)')