summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/librdkafka-2.1.0/packaging/get_version.py
diff options
context:
space:
mode:
Diffstat (limited to 'fluent-bit/lib/librdkafka-2.1.0/packaging/get_version.py')
-rwxr-xr-xfluent-bit/lib/librdkafka-2.1.0/packaging/get_version.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/fluent-bit/lib/librdkafka-2.1.0/packaging/get_version.py b/fluent-bit/lib/librdkafka-2.1.0/packaging/get_version.py
deleted file mode 100755
index fad1d971..00000000
--- a/fluent-bit/lib/librdkafka-2.1.0/packaging/get_version.py
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/env python3
-
-import sys
-
-if len(sys.argv) != 2:
- raise Exception('Usage: %s path/to/rdkafka.h' % sys.argv[0])
-
-kafka_h_file = sys.argv[1]
-f = open(kafka_h_file)
-for line in f:
- if '#define RD_KAFKA_VERSION' in line:
- version = line.split()[-1]
- break
-f.close()
-
-major = int(version[2:4], 16)
-minor = int(version[4:6], 16)
-patch = int(version[6:8], 16)
-version = '.'.join(str(item) for item in (major, minor, patch))
-
-print(version)