/[pkg-java]/trunk/java-package/ibm-j2re1.5/remove
ViewVC logotype

Contents of /trunk/java-package/ibm-j2re1.5/remove

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1863 - (show annotations) (download)
Sun Feb 5 20:36:01 2006 UTC (7 years, 3 months ago) by barryh-guest
File size: 1208 byte(s)
Corrections to install/remove scripts for IBM JREs/JDKs
1 suffix=j2re1.5-ibm
2 j2se_base="/usr/lib/$suffix"
3
4 if [ ! -e "$j2se_base/debian/info" ]; then
5 exit 0
6 fi
7
8 # alternative <program>
9 function program_alternative() {
10 local program="$1"
11 update-alternatives \
12 --remove "$program" "/usr/bin/$program-$suffix"
13 rm "/usr/bin/$program-$suffix"
14 }
15
16 program_alternative ControlPanel
17 program_alternative ikeyman
18 program_alternative java
19 program_alternative javaw
20 program_alternative javaws
21 program_alternative jextract
22 program_alternative keytool
23 program_alternative pack200
24 program_alternative policytool
25 program_alternative rmid
26 program_alternative rmiregistry
27 program_alternative tnameserv
28 program_alternative unpack200
29
30 # the plugin is only available for i386 architecture
31 if [ $(dpkg --print-architecture) = i386 ] ; then
32
33 # assemble the plugin path
34 plugin_dir="$j2se_base/jre/bin"
35
36 # netscape
37 update-alternatives \
38 --remove "netscape-javaplugin.so" "$plugin_dir/libjavaplugin_oji.so"
39
40 # mozilla
41 update-alternatives \
42 --remove "mozilla-javaplugin.so" "$plugin_dir/libjavaplugin_oji.so"
43
44 # firefox
45 update-alternatives \
46 --remove "firefox-javaplugin.so" "$plugin_dir/libjavaplugin_oji.so"
47
48 fi

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5