diff --git a/odt-strip-frames.sh b/odt-strip-frames.sh index 1d084d6c43f5277cc8b5d5637503e3ca0f3cc05d..56f8fb790f535c7f693ab9970ca4c800abbcb8b7 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