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 | |
parent | db6feaadfe562f1da5372f95fb4eb9f8922ec1b9 (diff) |
btrfs-progs: remove leftovers from hg times
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
-rw-r--r-- | .hgignore | 1 | ||||
-rw-r--r-- | .hgtags | 15 | ||||
-rw-r--r-- | version.sh | 20 |
3 files changed, 0 insertions, 36 deletions
diff --git a/.hgignore b/.hgignore deleted file mode 100644 index 67020331..00000000 --- a/.hgignore +++ /dev/null @@ -1 +0,0 @@ -version.h diff --git a/.hgtags b/.hgtags deleted file mode 100644 index 2aa4389e..00000000 --- a/.hgtags +++ /dev/null @@ -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 @@ -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 |