~mathiaz/+junk/ceph-new-pkg-review

« back to all changes in this revision

Viewing changes to src/check_version

  • Committer: Mathias Gug
  • Date: 2010-07-29 03:10:42 UTC
  • Revision ID: mathias.gug@canonical.com-20100729031042-n9n8kky962qb4onb
Import ceph_0.21-0ubuntu1 from https://launchpad.net/~clint-fewbar/+archive/ceph/+packages.

Show diffs side-by-side

added added

removed removed

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