home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / festival.postinst < prev    next >
Encoding:
Text File  |  2006-12-20  |  998 b   |  35 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. # Remove shutdown and reboot links; this init script does not need them.
  6. if dpkg --compare-versions "$2" lt "1.4.3-17.1ubuntu2"; then
  7.     rm -f /etc/rc0.d/K20festival /etc/rc6.d/K20festival
  8. fi
  9.  
  10. # Automatically added by dh_installinfo
  11. if [ "$1" = "configure" ]; then
  12.     install-info --quiet /usr/share/info/festival.info
  13. fi
  14. # End automatically added section
  15. # Automatically added by dh_installinit
  16. if [ -x "/etc/init.d/festival" ]; then
  17.     update-rc.d festival multiuser >/dev/null
  18.     if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
  19.         invoke-rc.d festival start || exit $?
  20.     else
  21.         /etc/init.d/festival start || exit $?
  22.     fi
  23. fi
  24. # End automatically added section
  25. # Automatically added by dh_installcatalogs
  26. if [ "$1" = "configure" ]; then
  27.     rm -f /etc/sgml/festival.cat
  28.     for ordcat in /usr/share/sgml/festival/catalog; do
  29.         update-catalog --quiet --add /etc/sgml/festival.cat ${ordcat}
  30.     done
  31.     update-catalog --quiet --add --super /etc/sgml/festival.cat
  32. fi
  33. # End automatically added section
  34.  
  35.