mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-11 16:29:42 +00:00
btrfs-progs: remove leftovers from hg times
Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
This commit is contained in:
parent
db6feaadfe
commit
8e937074a4
15
.hgtags
15
.hgtags
@ -1,15 +0,0 @@
|
||||
9cebac62e0c9df99a4ac5a9d489efe0c2e957713 v0.2
|
||||
1ef7cf63ac2c67e99b1a1c084554e9c87b08d2b0 v0.3
|
||||
c760f17dde33c970fc91ece5360567320396b627 v0.4
|
||||
c969452d5ae70db57fdd668557fbdb07756101e8 v0.4
|
||||
85bf731757729f25aaf76e47837b39122bea569f v0.5
|
||||
75b9a16fff1ae31c572317f2516476750fd1919a v0.6
|
||||
f4810b8d5822f06f7104806477863756886eb57f v0.8
|
||||
99eb8cf2ca515c2d747ec132e166222089b17056 v0.9
|
||||
548ea8d7514ba7fed921983029e5ef690fb3ef0a v0.10
|
||||
b3e59089dab67cc3ba52f83f41e9650773d89bd7 v0.11
|
||||
5e8f040cdf7c1d7e2cb583444b9434c31b673935 v0.12
|
||||
58b803dc9faeb19f2260f8aa37a8a4590fae085b v0.13
|
||||
969099968b60600901f90531fddd2f18e32ac336 v0.14
|
||||
e6571e2ce0c8ac9fcad9b5b638008e7c8980bf4d v0.15
|
||||
2b26e4f8c71ea411d7df35f23e38627cdcbef310 v0.16
|
20
version.sh
20
version.sh
@ -24,26 +24,6 @@ if [ $? == 0 -a -d .git ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
which hg &> /dev/null
|
||||
if [ $? == 0 -a -d .hg ]; then
|
||||
last=$(hg tags | grep -m1 -o '^v[0-9.]\+')
|
||||
|
||||
# now check if the repo has commits since then...
|
||||
if [[ $(hg id -t) == $last || \
|
||||
$(hg di -r "$last:." | awk '/^diff/{print $NF}' | sort -u) == .hgtags ]]
|
||||
then
|
||||
# check if it's dirty
|
||||
if [[ $(hg id | cut -d' ' -f1) == *+ ]]; then
|
||||
v=$last+
|
||||
else
|
||||
v=$last
|
||||
fi
|
||||
else
|
||||
# includes dirty flag
|
||||
v=$last+$(hg id -i)
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "#ifndef __BUILD_VERSION" > .build-version.h
|
||||
echo "#define __BUILD_VERSION" >> .build-version.h
|
||||
echo "#define BTRFS_BUILD_VERSION \"Btrfs $v\"" >> .build-version.h
|
||||
|
Loading…
Reference in New Issue
Block a user