~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to tools/perf/util/PERF-VERSION-GEN

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
then
20
20
        TAG=$(git describe --abbrev=0 --match "v[0-9].[0-9]*" 2>/dev/null )
21
21
        CID=$(git log -1 --abbrev=4 --pretty=format:"%h" 2>/dev/null) && CID="-g$CID"
 
22
elif test -f ../../PERF-VERSION-FILE
 
23
then
 
24
        TAG=$(cut -d' ' -f3 ../../PERF-VERSION-FILE | sed -e 's/\"//g')
22
25
fi
23
26
if test -z "$TAG"
24
27
then
40
43
        VC=unset
41
44
fi
42
45
test "$VN" = "$VC" || {
43
 
        echo >&2 "PERF_VERSION = $VN"
 
46
        echo >&2 "  PERF_VERSION = $VN"
44
47
        echo "#define PERF_VERSION \"$VN\"" >$GVF
45
48
}
46
49