diff options
author | B. Stack <bgstack15@gmail.com> | 2022-04-16 16:51:44 +0000 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-04-16 16:51:44 +0000 |
commit | 2611ac2c41471e12a2b1e6b217322f00cb9266d1 (patch) | |
tree | 9fc348166a26334b739259b11e039570c23f1f4d /scite/debian/fix-doc.sh | |
parent | Merge branch 'librewolf-bump' into 'master' (diff) | |
parent | fix #29: add functions to scite stackrpms.lua (diff) | |
download | stackrpms-2611ac2c41471e12a2b1e6b217322f00cb9266d1.tar.gz stackrpms-2611ac2c41471e12a2b1e6b217322f00cb9266d1.tar.bz2 stackrpms-2611ac2c41471e12a2b1e6b217322f00cb9266d1.zip |
Merge branch 'scite-bump' into 'master'
Scite bump
Closes #29
See merge request bgstack15/stackrpms!294
Diffstat (limited to 'scite/debian/fix-doc.sh')
-rw-r--r-- | scite/debian/fix-doc.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scite/debian/fix-doc.sh b/scite/debian/fix-doc.sh new file mode 100644 index 0000000..0a965e4 --- /dev/null +++ b/scite/debian/fix-doc.sh @@ -0,0 +1,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 |