diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-09-27 01:25:09 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-09-27 01:25:09 +0200 |
commit | a62cfe1ed3ede2ddc0b64ab94f1a09cb35c3c89e (patch) | |
tree | 19e6fbd523b83d07bb89ab8eb897296c9ff77896 /coverity/get_token.sh | |
parent | 735a5b9d1653d98f1ab65462b83738106e80c40c (diff) |
add coverity scripts found on osmo build-1
Change-Id: Ie69398dc95e8571b5a16fb529869f4c9fb3baa20
Diffstat (limited to 'coverity/get_token.sh')
-rwxr-xr-x | coverity/get_token.sh | 18 |
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/ .*//' |