Mercurial > hg > icedtea7
view pax-mark-vm.in @ 2938:51f2b365858b default tip
Add 2.6.21 release notes.
2020-03-05 Andrew John Hughes <gnu_andrew@member.fsf.org>
* NEWS: Add 2.6.21 release notes.
author | Andrew John Hughes <gnu_andrew@member.fsf.org> |
---|---|
date | Thu, 05 Mar 2020 19:52:51 +0000 |
parents | 3b7a6bd3fba0 |
children |
line wrap: on
line source
#!/bin/sh JDK=${1} FAIL_ON_ERROR=${2} # Taken from Gentoo's pax-utils.eclass list_paxables() { file "$@" 2> /dev/null | grep -E 'ELF.*(executable|shared object)' | sed -e 's/: .*$//' } if test "x@PAX_COMMAND@" != "x"; then if @PAX_COMMAND@ -m "${JDK}"/bin/java; then for paxable in `list_paxables "${JDK}"/bin/* "${JDK}"/jre/bin/*`; do echo "PaX mark @PAX_COMMAND_ARGS@ ${paxable}" @PAX_COMMAND@ @PAX_COMMAND_ARGS@ "${paxable}" done else if test "x${FAIL_ON_ERROR}" = "xtrue"; then echo "ERROR: Could not apply PaX markings to files in ${JDK}"; exit 1; else echo "WARNING: Could not apply PaX markings to files in ${JDK}"; fi fi fi