# HG changeset patch # User Paul Issott # Date 1292773866 0 # Node ID ad77865a86bfbb560a58cb5f38a35a6757e09ad6 # Parent 6ce472884aeb52efb6048b3e0ce4af58bb51df2e yasr: add post install diff -r 6ce472884aeb -r ad77865a86bf yasr/receipt --- a/yasr/receipt Sun Dec 19 15:46:56 2010 +0000 +++ b/yasr/receipt Sun Dec 19 15:51:06 2010 +0000 @@ -27,12 +27,17 @@ mkdir -p $fs/usr/share cp -a $_pkg/usr/bin $fs/usr cp -a $_pkg/usr/share/yasr $fs/usr/share +} - # enable speech-synthesizer in config file - cd $fs/usr/share/yasr +post_install() +{ + # Enable speech-synthesizer in config file + echo -n "Enabling config file..." + cd $1/usr/share/yasr sed -i 's/synthesizer=emacspeak/#synthesizer=emacspeak/; \ s/#synthesizer=speech/synthesizer=speech/; \ s/synthesizer port=|/#synthesizer port=|/; \ - s/#synthesizer port=127./synthesizer port=127./' yasr.conf + s/#synthesizer port=127./synthesizer port=127./' yasr.conf + status }