~ubuntu-branches/ubuntu/precise/ceph/precise-proposed

« back to all changes in this revision

Viewing changes to src/check_version

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2011-04-25 10:09:05 UTC
  • mfrom: (1.1.3 upstream) (0.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110425100905-exm7dfvi2v5ick02
Tags: 0.27-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
fi
7
7
 
8
8
dname=`dirname $0`
9
 
cur=`git rev-parse HEAD 2>/dev/null`
 
9
cur=`git rev-parse HEAD 2>/dev/null; git describe 2>/dev/null`
10
10
[ -e $1 ] && old=`cat $1`
11
11
 
12
12
if [ "$cur" != "$old" ]; then
13
13
    echo regenerating $1 with $cur
14
 
    echo $cur > $1
 
14
    echo "$cur" > $1
15
15
else
16
16
    echo $1 is up to date.
17
17
fi