blob: ee2df89438e61c57296246d7e546e640723d6f91 (
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
|
#!/bin/bash
## arg 1: the new package version
post_install() {
/usr/lib/libalpm/scripts/java-wrappers
}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
/usr/lib/libalpm/scripts/java-wrappers
}
## arg 1: the old package version
pre_remove() {
for jvm in /usr/lib/jvm/*; do
# must be a directory and not a symlink
if ! [ -d "$jvm" ] || [ -L "$jvm" ]; then
continue
fi
local wname="$(basename "$jvm")"
local wpath="/usr/bin/$wname"
echo "- $wpath"
rm "$wpath"
done
}
|