summaryrefslogtreecommitdiff
path: root/scite/debian/fix-doc.sh
blob: 0a965e4158d76cd60376582f9ce78ab3dff762e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

#set -x
set -e

DOCDIR=debian/scite/usr/share/scite
#DOCDIR=scite/doc

for htmlfile in ${DOCDIR}/*.html
do
    for f in ${DOCDIR}/*.html ${DOCDIR}/*.png ${DOCDIR}/*.jpg
    do
        fname=$(basename $f)
        sed -i -r \
            -e "s|href=\"https?://www.scintilla.org/${fname}|href=\"${fname}|gI" \
            -e "s|url\(https?://www.scintilla.org/${fname}\)|url(${fname})|gI" \
            -e "s|src=\"https?://(www\.)?scintilla.org/${fname}|src=\"${fname}|gI" \
            ${htmlfile}
    done
done
bgstack15