Commit cd757684a62a6d9f36a1d0ea9a227597a8cdd915

Authored by Colomban Wendling
1 parent 16c4dcba
Exists in python

Cleanup old sed and early debug stuff

Showing 1 changed file with 1 additions and 7 deletions   Show diff stats
odt-strip-frames.sh
... ... @@ -16,15 +16,9 @@ fi
16 16  
17 17 tempdir=$(mktemp -d)
18 18 unzip -q "$INPUT" -d "$tempdir"
19   -# fixup the file
20 19  
21   -#~ sed -r '
22   -#~ s%<draw:frame[^>]*><draw:text-box[^>]*>%</text:p><text:section>%g
23   -#~ s%</draw:text-box></draw:frame>%</text:section><text:p/><text:p>%g
24   -#~ ' -i "$tempdir/content.xml"
  20 +# fixup the file
25 21 xsltproc -o "$tempdir/content.xml.tmp" "$(dirname "$0")/strip-frames.xsl" "$tempdir/content.xml"
26   -#~ echo "you can check '$tempdir/content.xml.tmp' versus '$tempdir/content.xml' and type anything when done"
27   -#~ read X
28 22 mv -f "$tempdir/content.xml.tmp" "$tempdir/content.xml"
29 23  
30 24 # build the output
... ...