diff options
author | Thomas G. Lockhart <lockhart@fourpalms.org> | 2001-04-06 15:01:25 +0000 |
---|---|---|
committer | Thomas G. Lockhart <lockhart@fourpalms.org> | 2001-04-06 15:01:25 +0000 |
commit | 54329ac4a0bf3b32ca7ee83ecdc559533e07f481 (patch) | |
tree | 6f0eef571029fd79cdb7a35779eaac3d465a07bc | |
parent | c6cbf569e2e7fcdfd3a8ef4b3cb0800428524c90 (diff) | |
download | postgresql-54329ac4a0bf3b32ca7ee83ecdc559533e07f481.tar.gz postgresql-54329ac4a0bf3b32ca7ee83ecdc559533e07f481.zip |
Utility to add the stylesheet "s0" definition to an RTF file.
This stylesheet must be present for Applixware to be happy generating
a ToC. M$Word does not seem to care one way or the other.
-rwxr-xr-x | doc/src/sgml/fixrtf | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/src/sgml/fixrtf b/doc/src/sgml/fixrtf new file mode 100755 index 00000000000..a6a701f6db0 --- /dev/null +++ b/doc/src/sgml/fixrtf @@ -0,0 +1,23 @@ +#!/bin/sh +# fixrtf +# Repair (slightly) damaged RTF generated by jade +# Applixware wants the s0 stylesheet defined, whereas +# M$Word does not care about it. +# (c) 2001, Thomas Lockhart, PostgreSQL Inc. + +flist=$@ +if [ "$flist" = "" ] ; then + flist=*.rtf +fi + +for f in $flist ; do + echo -n "Repairing $f..." + if [ -r $f ] ; then + (sed 's/{\\stylesheet{\\s1/{\\stylesheet{\\s0 Normal 0;}{\\s1/g' $f > $f.new \ + && mv -f $f.new $f \ + && echo " done") || echo " failed" + else + echo " file not found" + fi +done +exit |