summaryrefslogtreecommitdiff
path: root/scite/debian/fix-doc.sh
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-04-16 16:51:44 +0000
committerB. Stack <bgstack15@gmail.com>2022-04-16 16:51:44 +0000
commit2611ac2c41471e12a2b1e6b217322f00cb9266d1 (patch)
tree9fc348166a26334b739259b11e039570c23f1f4d /scite/debian/fix-doc.sh
parentMerge branch 'librewolf-bump' into 'master' (diff)
parentfix #29: add functions to scite stackrpms.lua (diff)
downloadstackrpms-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.sh20
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
bgstack15