Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
linkcheck when building the doc
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 30 Jun 2019 16:31:24 +0000 (18:31 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 30 Jun 2019 16:31:24 +0000 (18:31 +0200)
docs/Build.sh

index 1815b8b..b0a94b4 100755 (executable)
@@ -57,5 +57,14 @@ do
   fi
 done
 
-set +e
-if [ -e /opt/simgrid ] ; then chmod +x /opt/simgrid; fi
+if [ -e /opt/simgrid ] ; then chmod -x /opt/simgrid; fi
+
+if [ -e /usr/bin/linkchecker ] ; then
+  linkchecker --no-status -o csv --ignore-url='.*\.css$' --ignore-url=public/java/org build/html \
+     | grep -v '^#' \
+     | grep -v 'urlname;parentname;baseref;result;warningstring'
+  echo "done."
+else
+  echo "Install linkchecker to have it executed when you build the doc."
+fi
+