mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-07 15:58:46 +00:00
940a37f5f0
cherry-pick all patches, apply them on upstream JDK, and adapted for newer $UPDATE version fix: type redefinition introduced in 21.0.2
20 lines
419 B
Bash
20 lines
419 B
Bash
#!@TERMUX_PREFIX@/bin/sh
|
|
|
|
if [ -f @TERMUX_PREFIX@/etc/profile.d/java.sh ]; then
|
|
raelpath=$(readlink @TERMUX_PREFIX@/etc/profile.d/java.sh)
|
|
sp_raelpath=(${raelpath//// })
|
|
if [ "${sp_raelpath[-4]}" != "java-21-openjdk" ]; then
|
|
return
|
|
fi
|
|
fi
|
|
|
|
for i in @binaries@; do
|
|
rm "@TERMUX_PREFIX@/bin/${i}"
|
|
done
|
|
|
|
for i in @manpages@; do
|
|
rm "@TERMUX_PREFIX@/share/man/man1/${i}"
|
|
done
|
|
|
|
rm @TERMUX_PREFIX@/etc/profile.d/java.sh
|