0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-19 11:02:16 +00:00
Henrik Grimler f494bfe0e9 enhance(main/openjdk-17): make debscripts executable
And add .in suffix to indicate that we are sed'ing stuff in them. Also
sed directly without first copying to destination dir.
2024-06-28 19:00:04 +02:00

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-17-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