aboutsummaryrefslogtreecommitdiffstats
path: root/coverity/get_token.sh
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-09-27 01:25:09 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-09-27 01:25:09 +0200
commita62cfe1ed3ede2ddc0b64ab94f1a09cb35c3c89e (patch)
tree19e6fbd523b83d07bb89ab8eb897296c9ff77896 /coverity/get_token.sh
parent735a5b9d1653d98f1ab65462b83738106e80c40c (diff)
add coverity scripts found on osmo build-1
Diffstat (limited to 'coverity/get_token.sh')
-rwxr-xr-xcoverity/get_token.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/coverity/get_token.sh b/coverity/get_token.sh
new file mode 100755
index 0000000..75eaf05
--- /dev/null
+++ b/coverity/get_token.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# Usage:
+# get_token.sh ../tokens.txt my-project
+#
+# Look for coverity token in a text file.
+# Text file lines must be of this format:
+# <token><single-space><project>
+#
+# e.g.
+#
+# a3Ksd02nfa-Lk28f_cAk3F libosmocore
+# b8sdJA_sd43fLS3-2vL24g libosmo-abis
+# ...
+
+tokens_file="$1"
+project="$2"
+grep " $project\$" "$tokens_file" | sed 's/ .*//'