1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
|
#
# fix-privacy-breach
# (c) 2014-2015 Norbert Preining
#
# try to fix the *very* helpful lintian error about privacy breach.
# Especially the privacy-breach-w3c-valid-html tag just tells us
# that it is bad, but we cannot copy the icon into the package since
# it is not free ... aaahhh what a wonderful world
#
pkg="$1"
xintfiles="
usr/share/doc/texlive-doc/generic/xint/CHANGES.html
usr/share/doc/texlive-doc/generic/xint/README.html
"
jadetexfiles="
usr/share/doc/texlive-doc/otherformats/jadetex/base/index.html
"
pdfjamfiles="
usr/share/doc/texlive-doc/support/pdfjam/PDFjam-README.html
"
komafiles="
usr/share/doc/texlive-doc/latex/koma-script/koma-script.html
usr/share/doc/texlive-doc/latex/koma-script/komascr.html
usr/share/doc/texlive-doc/latex/koma-script/komascript.html
usr/share/doc/texlive-doc/latex/koma-script/scraddr.html
usr/share/doc/texlive-doc/latex/koma-script/scrartcl.html
usr/share/doc/texlive-doc/latex/koma-script/scrbase.html
usr/share/doc/texlive-doc/latex/koma-script/scrbook.html
usr/share/doc/texlive-doc/latex/koma-script/scrdate.html
usr/share/doc/texlive-doc/latex/koma-script/scrextend.html
usr/share/doc/texlive-doc/latex/koma-script/scrguide.html
usr/share/doc/texlive-doc/latex/koma-script/scrguien.html
usr/share/doc/texlive-doc/latex/koma-script/scrhack.html
usr/share/doc/texlive-doc/latex/koma-script/scrlayer-notecolumn.html
usr/share/doc/texlive-doc/latex/koma-script/scrlayer-scrpage.html
usr/share/doc/texlive-doc/latex/koma-script/scrlayer.html
usr/share/doc/texlive-doc/latex/koma-script/scrletter.html
usr/share/doc/texlive-doc/latex/koma-script/scrlfile.html
usr/share/doc/texlive-doc/latex/koma-script/scrlttr2.html
usr/share/doc/texlive-doc/latex/koma-script/scrreprt.html
usr/share/doc/texlive-doc/latex/koma-script/scrtime.html
usr/share/doc/texlive-doc/latex/koma-script/scrwfile.html
usr/share/doc/texlive-doc/latex/koma-script/tocbasic.html
usr/share/doc/texlive-doc/latex/koma-script/typearea.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/koma-script.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/komascr.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/komascript.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scraddr.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrartcl.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrbase.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrbook.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrdate.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrextend.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrguide.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrguien.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrhack.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrlayer-notecolumn.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrlayer-scrpage.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrlayer.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrletter.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrlfile.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrlttr2.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrreprt.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrtime.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/scrwfile.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/tocbasic.html
usr/share/texlive/texmf-dist/source/latex/koma-script/doc/typearea.html
"
for f in $pdfjamfiles ; do
ff="debian/$pkg/$f"
if [ -r $ff ] ; then
sed -e 's/<img src="http:[^"]*" alt="PDF file"[^>]*>/(PDF)/g' $ff > $ff.new
mv $ff.new $ff
fi
done
for f in $komafiles ; do
ff="debian/$pkg/$f"
if [ -r $ff ] ; then
sed \
-e 's!src="http://www.w3.org/Icons/valid-xhtml11"!!g' \
-e 's!src="http://www.w3.org/Icons/valid-html40"!!g' \
$ff > $ff.new
mv $ff.new $ff
fi
done
for f in $jadetexfiles ; do
ff="debian/$pkg/$f"
if [ -r $ff ] ; then
sed \
-e 's!src="http://sourceforge.net/sflogo.php[^"]*"!!g' \
$ff > $ff.new
mv $ff.new $ff
fi
done
for f in $xintfiles ; do
ff="debian/$pkg/$f"
if [ -r $ff ] ; then
sed \
-e 's!<script src="//cdnjs.cloudflare.com/[^"]*"></script>!!g' \
$ff > $ff.new
mv $ff.new $ff
fi
done
|