mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 16:33:30 +00:00
19 lines
663 B
Bash
19 lines
663 B
Bash
#!@TERMUX_PREFIX@/bin/sh
|
|
|
|
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
|
|
if [ -x "@TERMUX_PREFIX@/bin/update-alternatives" ]; then
|
|
update-alternatives --install @TERMUX_PREFIX@/etc/profile.d/java.sh java-profile @TERMUX_PREFIX@/lib/jvm/java-17-openjdk/etc/profile.d/java.sh 40
|
|
for tool in @binaries@; do
|
|
update-alternatives --install \
|
|
@TERMUX_PREFIX@/bin/$tool $tool \
|
|
@TERMUX_PREFIX@/lib/jvm/java-17-openjdk/bin/$tool 40
|
|
done
|
|
|
|
for manpage in @manpages@; do
|
|
update-alternatives --install \
|
|
@TERMUX_PREFIX@/share/man/man1/$manpage $manpage \
|
|
@TERMUX_PREFIX@/lib/jvm/java-17-openjdk/man/man1/$manpage 60
|
|
done
|
|
fi
|
|
fi
|