mirror of
https://github.com/marado/RNID.git
synced 2025-02-05 08:39:40 +00:00
scripts/26-snirh.sh
This commit is contained in:
parent
0b17064854
commit
1375ead26f
@ -33,7 +33,7 @@ Esta tabela mostra casos de incumprimento do regulamento:
|
|||||||
| http://www.matriznet.dgpc.pt/ | Flash | [conteúdo Flash](http://www.matriznet.dgpc.pt/) | 2018/06/09 ||
|
| http://www.matriznet.dgpc.pt/ | Flash | [conteúdo Flash](http://www.matriznet.dgpc.pt/) | 2018/06/09 ||
|
||||||
| http://www.matrizpix.dgpc.pt/ | Flash | [conteúdo Flash](http://www.matrizpix.dgpc.pt/) | 2018/06/09 ||
|
| http://www.matrizpix.dgpc.pt/ | Flash | [conteúdo Flash](http://www.matrizpix.dgpc.pt/) | 2018/06/09 ||
|
||||||
| https://www.autarquicas2017.mai.gov.pt/ | certificado SSL inválido, CSS inválido | [análise do CSS](https://jigsaw.w3.org/css-validator/validator?uri=https%3A%2F%2Fwww.autarquicas2017.mai.gov.pt%2F&profile=css3&usermedium=all&warning=1&vextwarning=&lang=en) | 2018/06/09 ||
|
| https://www.autarquicas2017.mai.gov.pt/ | certificado SSL inválido, CSS inválido | [análise do CSS](https://jigsaw.w3.org/css-validator/validator?uri=https%3A%2F%2Fwww.autarquicas2017.mai.gov.pt%2F&profile=css3&usermedium=all&warning=1&vextwarning=&lang=en) | 2018/06/09 ||
|
||||||
| https://snirh.apambiente.pt/ | XHTML inválido, CSS inválido | [análise do XHTML](https://validator.w3.org/check?uri=https%3A%2F%2Fsnirh.apambiente.pt&charset=%28detect+automatically%29&doctype=Inline&group=0), [análise do CSS](https://jigsaw.w3.org/css-validator/validator?uri=https%3A%2F%2Fsnirh.apambiente.pt&profile=css3&usermedium=all&warning=1&vextwarning=&lang=en) | 2018/06/01 ||
|
| https://snirh.apambiente.pt/ | XHTML inválido, CSS inválido | [análise do XHTML](https://validator.w3.org/check?uri=https%3A%2F%2Fsnirh.apambiente.pt&charset=%28detect+automatically%29&doctype=Inline&group=0), [análise do CSS](https://jigsaw.w3.org/css-validator/validator?uri=https%3A%2F%2Fsnirh.apambiente.pt&profile=css3&usermedium=all&warning=1&vextwarning=&lang=en) | 2018/06/10 ||
|
||||||
| https://www.cnpd.pt | Formulário em XLSX | [link para o formulário](https://www.cnpd.pt/bin/notifica_rgpd/epd_dpo.htm) | 2018/05/26 ||
|
| https://www.cnpd.pt | Formulário em XLSX | [link para o formulário](https://www.cnpd.pt/bin/notifica_rgpd/epd_dpo.htm) | 2018/05/26 ||
|
||||||
|
|
||||||
Este [template](template.txt) é utilizado pela ANSOL e pela Comunidade LibreOffice Portugal para enviar um pedido de resolução do problema.
|
Este [template](template.txt) é utilizado pela ANSOL e pela Comunidade LibreOffice Portugal para enviar um pedido de resolução do problema.
|
||||||
|
29
scripts/26-snirh.sh
Executable file
29
scripts/26-snirh.sh
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# | https://snirh.apambiente.pt/ | XHTML inválido, CSS inválido | [análise do XHTML](https://validator.w3.org/check?uri=https%3A%2F%2Fsnirh.apambiente.pt&charset=%28detect+automatically%29&doctype=Inline&group=0), [análise do CSS](https://jigsaw.w3.org/css-validator/validator?uri=https%3A%2F%2Fsnirh.apambiente.pt&profile=css3&usermedium=all&warning=1&vextwarning=&lang=en) | 2018/06/01 ||
|
||||||
|
|
||||||
|
maybeOK=0;
|
||||||
|
|
||||||
|
wget "https://validator.w3.org/check?uri=https%3A%2F%2Fsnirh.apambiente.pt&charset=%28detect+automatically%29&doctype=Inline&group=0" -o /dev/null -O - |hxnormalize -x -l 1000|hxselect .invalid|hxselect h3 -c > xhtml
|
||||||
|
if [ ! "$(diff xhtml scripts/26/xhtml|wc -l)" -eq "0" ]; then
|
||||||
|
echo "xhtml snirh: incumprimento pode já não existir";
|
||||||
|
maybeOK=1;
|
||||||
|
fi
|
||||||
|
rm xhtml
|
||||||
|
|
||||||
|
wget "https://jigsaw.w3.org/css-validator/validator?uri=https%3A%2F%2Fsnirh.apambiente.pt&profile=css3&usermedium=all&warning=1&vextwarning=&lang=en" -o /dev/null -O - |grep \#errors|cut -d\> -f3|cut -d\< -f1 > css
|
||||||
|
if [ ! "$(diff css scripts/26/css|wc -l)" -eq "0" ]; then
|
||||||
|
echo "css snirh: incumprimento pode já não existir";
|
||||||
|
maybeOK=1;
|
||||||
|
fi
|
||||||
|
rm css
|
||||||
|
|
||||||
|
if [ "$maybeOK" -eq "0" ]; then
|
||||||
|
echo "snirh: Incumprimento mantém-se, a actualizar o README (faça um git diff, valide, e commit!)";
|
||||||
|
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||||
|
test $(echo "$line"|grep -v snirh|wc -l) -eq "1" \
|
||||||
|
&& echo "$line" \
|
||||||
|
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
|
||||||
|
done < README.md > new
|
||||||
|
mv new README.md
|
||||||
|
fi
|
1
scripts/26/css
Normal file
1
scripts/26/css
Normal file
@ -0,0 +1 @@
|
|||||||
|
Errors (12)
|
1
scripts/26/xhtml
Normal file
1
scripts/26/xhtml
Normal file
@ -0,0 +1 @@
|
|||||||
|
Validation Output: 110 Errors
|
Loading…
Reference in New Issue
Block a user