view pax-mark-vm.in @ 2807:f85e5a8108d2 default tip

Replace temporary OpenJDK 7 bug IDs with allocated ones from the OpenJDK bug database. 2015-08-21 Andrew John Hughes <gnu.andrew@member.fsf.org> * NEWS: Replace temporary OpenJDK 7 bug IDs with allocated ones from the OpenJDK bug database.
author Andrew John Hughes <gnu_andrew@member.fsf.org>
date Fri, 21 Aug 2015 18:39:22 +0100
parents ffb3f0d91d72
children
line wrap: on
line source

#!/bin/sh

# 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
	for paxable in `list_paxables "${1}"/bin/* "${1}"/jre/bin/*`; do
		echo "PaX mark @PAX_COMMAND_ARGS@ ${paxable}"
		@PAX_COMMAND@ @PAX_COMMAND_ARGS@ "${paxable}"
	done
fi