Remove this line
[kdeaccessibility.git] / kttsd / clean_obsolete.sh
blob45879ebe5862a9ae86f19bb9ace0b2089fc12ecd
1 #! /bin/sh
3 # This script cleans obsolete KTTS files from your system.
4 # You should run this if you have been downloading KTTS and installing
5 # prior to the indicated dates.
7 # You would normally run this after running configure and before
8 # make install, i.e.,
9 # cd kdenonbeta
10 # echo kttsd>inst-apps
11 # make -f Makefile.cvs
12 # ./configure
13 # cd kttsd
14 # ./clean_obsolete.sh
15 # make install
17 PREFIX=$(kde-config --prefix)
18 LIBTOOL="../libtool"
20 if [ -z "$PREFIX" ]; then
21 echo "KDE prefix not found. Do you have kde-config installed?"
22 exit
25 if [ ! -x $LIBTOOL ]; then
26 echo "libtool was not found. Did you run configure?"
27 exit
30 set -x
32 # libktts removed. See kdeaccessibility/kttsd/kcmkttsmgr/Makefile.am
33 # for example how to build without it.
34 # on or about 20 Dec 2004.
35 $LIBTOOL --mode=uninstall $PREFIX/lib/kde3/libktts
36 $LIBTOOL --mode=uninstall $PREFIX/lib/libktts
38 # ServiceType kttsd.desktop renamed to kttsd_synthplugin.desktop,
39 # which distinquishes it from kttsd.desktop in the services dir
40 # and more accurately reflects its purpose
41 # on or about 8 Dec 2004.
42 rm -f $PREFIX/share/servicetypes/kttsd.desktop
44 # kcm_kttsmgr removed. Use kcm_kttsd instead.
45 # Change made on or about 18 Dec 2004.
46 $LIBTOOL --mode=uninstall $PREFIX/lib/kde3/kcm_kttsmgr
47 rm -f $PREFIX/share/applnk/Settings/Accessibility/kcmkttsmgr.desktop
48 rm -f $PREFIX/share/applications/kde/kcmkttsmgr.desktop
50 # Renamed libkttsjobmgr to libkttsjobmgrpart per kdelibs/NAMING convention
51 # on or about 19 Oct 2004:
53 $LIBTOOL --mode=uninstall $PREFIX/lib/kde3/libkttsjobmgr
55 # The following installed files were renamed
56 # on or about 19 Oct 2004:
57 # In $KDEDIR/share/services/:
58 # festival.desktop -> kttsd_festivalplugin.desktop
59 #    festivalint.desktop      -> kttsd_festivalintplugin.desktop
60 #    command.desktop          -> kttsd_commandplugin.desktop
61 #    hadifix.desktop          -> kttsd_hadifixplugin.desktop
62 #    flite.desktop            -> kttsd_fliteplugin.desktop
63 #    epos-kttsdplugin.desktop -> kttsd_eposplugin.desktop
64 #    freetts.desktop          -> kttsd_freettsplugin.desktop
65 #  In $KDEDIR/lib/kde3/:
66 # libfestivalplugin -> libkttsd_festivalplugin
67 #    libfestivalintplugin     -> libkttsd_festivalintplugin
68 #    libcommandplugin         -> libkttsd_commandplugin
69 #    libhadifixplugin         -> libkttsd_hadifixplugin
70 #    libfliteplugin           -> libkttsd_fliteplugin
71 #    libeposkttsdplugin    -> libkttsd_eposplugin
72 #    libfreettsplugin         -> libkttsd_freettsplugin
74 rm -f $PREFIX/share/services/festival.desktop
75 rm -f $PREFIX/share/services/festivalint.desktop
76 rm -f $PREFIX/share/services/command.desktop
77 rm -f $PREFIX/share/services/hadifix.desktop
78 rm -f $PREFIX/share/services/flite.desktop
79 rm -f $PREFIX/share/services/epos-kttsdplugin.desktop
80 rm -f $PREFIX/share/services/freetts.desktop
82 $LIBTOOL --mode=uninstall $PREFIX/lib/kde3/libfestivalplugin
83 $LIBTOOL --mode=uninstall $PREFIX/lib/kde3/libfestivalintplugin
84 $LIBTOOL --mode=uninstall $PREFIX/lib/kde3/libcommandplugin
85 $LIBTOOL --mode=uninstall $PREFIX/lib/kde3/libhadifixplugin
86 $LIBTOOL --mode=uninstall $PREFIX/lib/kde3/libfliteplugin
87 $LIBTOOL --mode=uninstall $PREFIX/lib/kde3/libeposkttsdplugin
88 $LIBTOOL --mode=uninstall $PREFIX/lib/kde3/libfreettsplugin
90 # The following library was changed from unversioned to versioned
91 # on or about 13 Oct 2004,
93 $LIBTOOL --mode=uninstall $PREFIX/lib/libktts
95 # The hadifax plugin was renamed to hadifix
96 # on or about 4 Sep 2004.
98 rm -f $PREFIX/share/services/hadifax.desktop
99 $LIBTOOL --mode=uninstall /lib/kde3/libhadifaxplugin
101 # Clean up the library cache.
103 $LIBTOOL --mode=finish -n $PREFIX/lib
104 $LIBTOOL --mode=finish -n $PREFIX/lib/kde3/