view debian/madbuilder.postinst @ 1178:416e41952b76

Fix issue that pyink does not switch current layer to the new key scene. - After insert a new key scene, pyink does switch current layer to the new scene. It is supposed to have. - calls selectSceneObject() in doInsertKeyScene().
author Thinker K.F. Li <thinker@codemud.net>
date Fri, 31 Dec 2010 10:43: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