diff options
author | David Sterba <dsterba@suse.cz> | 2013-09-18 17:26:33 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-10-16 08:23:11 -0400 |
commit | 8e937074a4ecc1a70f4a10cfff94e60a916ce82f (patch) | |
tree | 2c7ecbb34ba29c3b38ab3a939c049db1fc4ea045 /version.sh | |
parent | db6feaadfe562f1da5372f95fb4eb9f8922ec1b9 (diff) | |
download | btrfs-progs-8e937074a4ecc1a70f4a10cfff94e60a916ce82f.tar.gz |
btrfs-progs: remove leftovers from hg times
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'version.sh')
-rw-r--r-- | version.sh | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -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 |