summaryrefslogtreecommitdiffstats
path: root/tools/warnstats.sh
diff options
context:
space:
mode:
authorThomas Kulik <thomas.kulik@telekom.de>2020-04-21 09:48:29 +0200
committerAndreas Geissler <andreas-geissler@telekom.de>2020-04-22 07:19:31 +0000
commit5967ea01a7a8015b74a9b12916be4607566f208e (patch)
tree02d5c0dcb2c333bd912bf1a5b42b091b7b15f21c /tools/warnstats.sh
parent2a9702b96b24b0fdacac43db3a2feb72c2ebdd77 (diff)
Issue-ID: DOC-603
fixed a problem with duplicates in rst filenames Signed-off-by: Thomas Kulik <thomas.kulik@telekom.de> Change-Id: I4b230d0627c38fc53fd108324b49e1c6a3bc34e9
Diffstat (limited to 'tools/warnstats.sh')
-rwxr-xr-xtools/warnstats.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/warnstats.sh b/tools/warnstats.sh
index 338898a90..675884c01 100755
--- a/tools/warnstats.sh
+++ b/tools/warnstats.sh
@@ -33,6 +33,7 @@
###
### CHANGELOG (LATEST ON TOP)
###
+### 1.6.1 (2020-04-21) - fixed a problem with duplicates in rst filenames
### 1.6.0 (2020-04-03) - extended detection of docs pathes in case they are not
### below the submodules directory
### 1.5.0 (2020-03-23) - doc8 test now executed for every rst file. result is
@@ -47,10 +48,10 @@
### no real onap projects/modules but directories which
### contain additional documentation in rst format).
### 1.3.1 (2020-03-10) - fixed minor typo in usage message
-### 1.3.0 (2020-03-09) - initial release
+### 1.3.0 (2020-03-09) - initially released to the community
###
-script_version="1.6.0 (2020-04-03)"
+script_version="1.6.1 (2020-04-21)"
doc8_dir=$(pwd)/doc8_results
logfile=$1;
doc8_command="doc8 --verbose"; #add options if required
@@ -217,7 +218,8 @@ do
# extract rst file name from line and do some formatting to use it later as an array name
#echo "DBUG line: $line";
- rstfile=$(echo "$line" | grep -oP "[\w -]*\.rst");
+ rstfile=$(echo "$line" | sed -r 's:, other instance in.*::');
+ rstfile=$(echo -e "${rstfile}" | grep -oP "[\w -]*\.rst");
rstfile=$(echo -e ${rstfile} | tr '[:blank:]' '_');
#echo "DBUG rst-file: $rstfile";