summaryrefslogtreecommitdiff
path: root/version.sh
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2013-09-18 17:26:33 +0200
committerChris Mason <chris.mason@fusionio.com>2013-10-16 08:23:11 -0400
commit8e937074a4ecc1a70f4a10cfff94e60a916ce82f (patch)
tree2c7ecbb34ba29c3b38ab3a939c049db1fc4ea045 /version.sh
parentdb6feaadfe562f1da5372f95fb4eb9f8922ec1b9 (diff)
downloadbtrfs-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.sh20
1 files changed, 0 insertions, 20 deletions
diff --git a/version.sh b/version.sh
index b81040e..971646b 100644
--- a/version.sh
+++ b/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