summaryrefslogtreecommitdiffstats
path: root/kttsd/clean_obsolete.sh
blob: 266f39d3dc21f4fda16b6030ec13f66f97b524e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#! /bin/sh

# This script cleans obsolete KTTS files from your system.
# You should run this if you have been downloading KTTS and installing
# prior to the indicated dates.

# You would normally run this after running configure and before
# make install, i.e.,
#   cd kdenonbeta
#   echo kttsd>inst-apps
#   make -f Makefile.cvs
#   ./configure
#   cd kttsd
#   ./clean_obsolete.sh
#   make install

PREFIX=$(tde-config --prefix)
LIBTOOL="../libtool"

if [ -z "$PREFIX" ]; then
    echo "KDE prefix not found.  Do you have tde-config installed?"
    exit
fi

if [ ! -x $LIBTOOL ]; then
    echo "libtool was not found.  Did you run configure?"
    exit
fi

set -x

# libktts removed.  See tdeaccessibility/kttsd/kcmkttsmgr/Makefile.am
# for example how to build without it.
# on or about 20 Dec 2004.
$LIBTOOL --mode=uninstall $PREFIX/lib/trinity/libktts
$LIBTOOL --mode=uninstall $PREFIX/lib/libktts

# ServiceType kttsd.desktop renamed to kttsd_synthplugin.desktop,
# which distinquishes it from kttsd.desktop in the services dir
# and more accurately reflects its purpose
# on or about 8 Dec 2004.
rm -f $PREFIX/share/servicetypes/kttsd.desktop

# kcm_kttsmgr removed.  Use kcm_kttsd instead.
# Change made on or about 18 Dec 2004.
$LIBTOOL --mode=uninstall $PREFIX/lib/trinity/kcm_kttsmgr
rm -f $PREFIX/share/applnk/Settings/Accessibility/kcmkttsmgr.desktop
rm -f $PREFIX/share/applications/tde/kcmkttsmgr.desktop

# Renamed libkttsjobmgr to libkttsjobmgrpart per tdelibs/NAMING convention
# on or about 19 Oct 2004:

$LIBTOOL --mode=uninstall $PREFIX/lib/trinity/libkttsjobmgr

# The following installed files were renamed
# on or about 19 Oct 2004:
#  In $TDEDIR/share/services/:
#    festival.desktop         -> kttsd_festivalplugin.desktop
#� � festivalint.desktop � � �-> kttsd_festivalintplugin.desktop
#� � command.desktop � � � � �-> kttsd_commandplugin.desktop
#� � hadifix.desktop � � � � �-> kttsd_hadifixplugin.desktop
#� � flite.desktop � � � � � �-> kttsd_fliteplugin.desktop
#� � epos-kttsdplugin.desktop -> kttsd_eposplugin.desktop
#� � freetts.desktop � � � � �-> kttsd_freettsplugin.desktop
#� In $TDEDIR/lib/trinity/:
#    libfestivalplugin        -> libkttsd_festivalplugin
#� � libfestivalintplugin � � -> libkttsd_festivalintplugin
#� � libcommandplugin � � � � -> libkttsd_commandplugin
#� � libhadifixplugin � � � � -> libkttsd_hadifixplugin
#� � libfliteplugin � � � � � -> libkttsd_fliteplugin
#� � libeposkttsdplugin    � �-> libkttsd_eposplugin
#� � libfreettsplugin � � � � -> libkttsd_freettsplugin

rm -f $PREFIX/share/services/festival.desktop
rm -f $PREFIX/share/services/festivalint.desktop
rm -f $PREFIX/share/services/command.desktop
rm -f $PREFIX/share/services/hadifix.desktop
rm -f $PREFIX/share/services/flite.desktop
rm -f $PREFIX/share/services/epos-kttsdplugin.desktop
rm -f $PREFIX/share/services/freetts.desktop

$LIBTOOL --mode=uninstall $PREFIX/lib/trinity/libfestivalplugin
$LIBTOOL --mode=uninstall $PREFIX/lib/trinity/libfestivalintplugin
$LIBTOOL --mode=uninstall $PREFIX/lib/trinity/libcommandplugin
$LIBTOOL --mode=uninstall $PREFIX/lib/trinity/libhadifixplugin
$LIBTOOL --mode=uninstall $PREFIX/lib/trinity/libfliteplugin
$LIBTOOL --mode=uninstall $PREFIX/lib/trinity/libeposkttsdplugin
$LIBTOOL --mode=uninstall $PREFIX/lib/trinity/libfreettsplugin

# The following library was changed from unversioned to versioned
# on or about 13 Oct 2004, 

$LIBTOOL --mode=uninstall $PREFIX/lib/libktts

# The hadifax plugin was renamed to hadifix
# on or about 4 Sep 2004.

rm -f $PREFIX/share/services/hadifax.desktop
$LIBTOOL --mode=uninstall /lib/trinity/libhadifaxplugin

# Clean up the library cache.

$LIBTOOL --mode=finish -n $PREFIX/lib
$LIBTOOL --mode=finish -n $PREFIX/lib/trinity/