NetBSD/external/bsd/mdocml/prepare-import.sh
joerg 6e4753617c Use example.style.css in place of style.css.
Replace $Mdocdate$ with the content in correct order, so that groff
gives proper output.
2011-01-12 23:00:51 +00:00

15 lines
309 B
Bash

#/bin/sh
set -e
cd dist
rm -rf ChangeLog.xsl style.css index.css *.sgml
uuencode external.png < external.png > external.png.uu
rm external.png
for f in [a-z]*; do
sed -e 's/[$]Id:/\$Vendor-Id:/' \
-e 's/[$]Mdocdate: \([^$]*\) \([0-9][0-9][0-9][0-9]\) [$]/\1, \2/' < $f > $f.new && mv $f.new $f
done