diff options
Diffstat (limited to 'tools/perf/util/PERF-VERSION-GEN')
-rwxr-xr-x | tools/perf/util/PERF-VERSION-GEN | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/PERF-VERSION-GEN b/tools/perf/util/PERF-VERSION-GEN index 6aa34e5afdcf..055fef34b6f6 100755 --- a/tools/perf/util/PERF-VERSION-GEN +++ b/tools/perf/util/PERF-VERSION-GEN | |||
@@ -26,13 +26,13 @@ VN=$(expr "$VN" : v*'\(.*\)') | |||
26 | 26 | ||
27 | if test -r $GVF | 27 | if test -r $GVF |
28 | then | 28 | then |
29 | VC=$(sed -e 's/^PERF_VERSION = //' <$GVF) | 29 | VC=$(sed -e 's/^#define PERF_VERSION "\(.*\)"/\1/' <$GVF) |
30 | else | 30 | else |
31 | VC=unset | 31 | VC=unset |
32 | fi | 32 | fi |
33 | test "$VN" = "$VC" || { | 33 | test "$VN" = "$VC" || { |
34 | echo >&2 "PERF_VERSION = $VN" | 34 | echo >&2 "PERF_VERSION = $VN" |
35 | echo "PERF_VERSION = $VN" >$GVF | 35 | echo "#define PERF_VERSION \"$VN\"" >$GVF |
36 | } | 36 | } |
37 | 37 | ||
38 | 38 | ||