From cd757684a62a6d9f36a1d0ea9a227597a8cdd915 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Wed, 12 Sep 2018 17:58:48 +0200 Subject: [PATCH] Cleanup old sed and early debug stuff --- odt-strip-frames.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/odt-strip-frames.sh b/odt-strip-frames.sh index 1d084d6..56f8fb7 100755 --- a/odt-strip-frames.sh +++ b/odt-strip-frames.sh @@ -16,15 +16,9 @@ fi tempdir=$(mktemp -d) unzip -q "$INPUT" -d "$tempdir" -# fixup the file -#~ sed -r ' -#~ s%]*>]*>%%g -#~ s%%%g -#~ ' -i "$tempdir/content.xml" +# fixup the file xsltproc -o "$tempdir/content.xml.tmp" "$(dirname "$0")/strip-frames.xsl" "$tempdir/content.xml" -#~ echo "you can check '$tempdir/content.xml.tmp' versus '$tempdir/content.xml' and type anything when done" -#~ read X mv -f "$tempdir/content.xml.tmp" "$tempdir/content.xml" # build the output -- GitLab