From ffaf5d8bbde9d0cfaa5dfd866324a51c8ad4b0e2 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Fri, 10 Jun 2016 07:40:15 +0200 Subject: [PATCH] Removed check script --- check.sh | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100755 check.sh diff --git a/check.sh b/check.sh deleted file mode 100755 index 0c012cb723..0000000000 --- a/check.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash - -if [ "$1" == "" ]; then - DOC="target/master.html" -else - DOC="$1/target/master.html" -fi - -for i in `cat $DOC | grep -o -e 'href="[^"]*"' | cut -d '"' -f 2`; do - if ( echo $i | grep '^#' &>/dev/null ); then - i=`echo $i | sed 's/#//'` - if ( ! cat $DOC | grep "id=\"$i\"" &>/dev/null ); then - echo "Missing link: $i" - ERROR=1 - fi - else - if ( echo $i | grep 'redhat.com' &>/dev/null ); then - if ( ! curl --insecure -s $i | grep "attributes.set('Name'" &>/dev/null ); then - echo "Invalid link: $i" - ERROR=1 - fi - elif ( ! curl --output /dev/null --silent --head --fail "$i" --connect-timeout 2 ); then - echo "Invalid link: $i" - ERROR=1 - fi - fi -done - -if ( cat $DOC | grep ifeval &>/dev/null ); then - echo "Found ifeval in text" - ERROR=1 -fi - -for i in `cat $DOC | grep -o -e '{book_[^}]*}' | sed 's/{//' | sed 's/}//'`; do - echo "Invalid attribute: $i" - ERROR=1 -done - -if [ $ERROR ]; then - exit 1 -fi