view debian/madbuilder.postinst @ 760:5781b2485e38

Fix position issue of stext. Sometime, stext does not show at correct position. After some study, it is caused by a typo in the code of create scaled font (make_scaled_font_face()). The typo causes a fault in compute transform matrix for scale fonts.
author Thinker K.F. Li <thinker@codemud.net>
date Sat, 28 Aug 2010 22:54:07 +0800
parents 12464f1138ae
children
line wrap: on
line source

#!/bin/bash

HEADER="#MadBuilder Configuration#"
FOOTER="#End of MadBuilder Configuration#"
RC=/etc/mozpluggerrc

CONTAIN=`grep "$HEADER" $RC`

if [  -z "$CONTAIN" ]
then
cat <<EOF >> $RC

$HEADER
application/x-mbsvg:mbsvg: MadButterfly SVG
        swallow(Inkscape) : /usr/share/madbutterfly/inkscape/usr/bin/helper_mb.py "\$file"
application/x-h:h: MadButterfly SVG h program
	swallow(gedit) : gedit "\$file"
$FOOTER

EOF
echo Configuration installed to $RC
fi