From eedac700b10ab9e5900708ff06a09e881317f6eb Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Tue, 5 Apr 2022 14:00:15 -0400 Subject: scite: add devuan dpkg --- scite/debian/fix-doc.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 scite/debian/fix-doc.sh (limited to 'scite/debian/fix-doc.sh') 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 -- cgit